crypto/weakcryptospi/inc/spi/signerplugin.h
changeset 30 cf642210ecb7
parent 8 35751d3474b7
child 49 2f10d260163b
--- a/crypto/weakcryptospi/inc/spi/signerplugin.h	Tue Nov 24 09:06:03 2009 +0200
+++ b/crypto/weakcryptospi/inc/spi/signerplugin.h	Thu Dec 17 09:28:34 2009 +0200
@@ -42,24 +42,35 @@
 		/**
 		Set the padding mode for the signer or verifier. Reset() is called to reinitialise the cipher.
 		@param aPaddingMode The padding mode of the signer
+		@leave KErrNotSupported if the padding mode is not supported.
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/
 		virtual void SetPaddingModeL(TUid aPaddingMode) = 0;
 
 		/**
 		Set the private key for the signer or verifier. Reset() is called to reinitialise the cipher.
 		@param aPrivateKey The privatekey that used to sign
+		@leave KErrArgument if key is not of the expected type.
+		@leave KErrNotSupported if the key is not of valid length.
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/
 		virtual void SetKeyL(const CKey& aPrivateKey) = 0;
 
 		/**
 		Gets the maximum size of input accepted by this object.
 		@return The maximum length allowed in bytes
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/	 
 		virtual TInt GetMaximumInputLengthL() const = 0;
 
 		/**
 		Gets the maximum size of output that can be generated by this object.
 		@return The maximum output length in bytes
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/	 
 		virtual TInt GetMaximumOutputLengthL() const = 0;
 		};
@@ -72,6 +83,8 @@
 		Signs the input hash
 		@param aInput	The hash of the message to sign
 		@param aSignature The signature of the hash 
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/
 		virtual void SignL(const TDesC8& aInput, CCryptoParams& aSignature) = 0;
 		};
@@ -86,6 +99,8 @@
 		@param aInput	The hash of the message to sign
 		@param aSignature The signature of the hash 
 		@param aRequestStatus
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/
 		virtual void SignL(const TDesC8& aInput, CCryptoParams& aSignature, TRequestStatus& aRequestStatus) = 0;