crypto/weakcryptospi/inc/spi/asymmetriccipherplugin.h
changeset 30 cf642210ecb7
parent 8 35751d3474b7
--- a/crypto/weakcryptospi/inc/spi/asymmetriccipherplugin.h	Tue Nov 24 09:06:03 2009 +0200
+++ b/crypto/weakcryptospi/inc/spi/asymmetriccipherplugin.h	Thu Dec 17 09:28:34 2009 +0200
@@ -42,30 +42,44 @@
 		/**
 		Set the public key of this cipher. Reset() is called to reinitialise the cipher.
 		@param aKey	The public key.
+		@leave KErrArgument if aKey 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& aKey) = 0;
 
 		/**
 		Set the crypto mode of this cipher. Reset() is called to reinitialise the cipher.
 		@param aCryptoMode	The crypto mode
+		@leave KErrNotSupported if the specified 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 SetCryptoModeL(TUid aCryptoMode) = 0;
 
 		/**
 		Set padding Mode of this cipher. Reset() is called to reinitialise the cipher.
 		@param aPaddingMode	The padding mode
+		@leave	KErrNotSupported if the specified 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;
 
 		/**
 		Gets the maximum size of input accepted by this object.	
 		@return The maximum input 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;
 		};
@@ -77,6 +91,8 @@
 		Encrypts or decrypts aInput and appends the result to aOutput.
 		@param aInput	The input data to be processed.
 		@param aOutput	The resulting processed data appended to aOutput.
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/
 		virtual void ProcessL(const TDesC8& aInput, TDes8& aOutput) = 0;
 		};
@@ -90,6 +106,8 @@
 		@param aInput	The input data to be processed.
 		@param aOutput	The resulting processed data appended to aOutput.
 		@param aRequestStatus
+		@leave ...	Any of the crypto error codes defined in 
+  					cryptospi_errs.h or any of the system-wide error codes.
 		*/
 		virtual void ProcessL(const TDesC8& aInput, TDes8& aOutput, TRequestStatus& aRequestStatus) = 0;