diff -r ece3df019add -r cf642210ecb7 crypto/weakcryptospi/inc/spi/cryptoasymmetriccipherapi.h --- a/crypto/weakcryptospi/inc/spi/cryptoasymmetriccipherapi.h Tue Nov 24 09:06:03 2009 +0200 +++ b/crypto/weakcryptospi/inc/spi/cryptoasymmetriccipherapi.h Thu Dec 17 09:28:34 2009 +0200 @@ -52,30 +52,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. */ IMPORT_C void SetKeyL(const CKey& aKey); /** Set the crypto mode of this cipher. Reset() is called to reinitialise the cipher. - @param aCryptoMode crypto mode + @param aCryptoMode 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. */ IMPORT_C void SetCryptoModeL(TUid aCryptoMode); /** Set padding Mode of this cipher. Reset() is called to reinitialise the cipher. - @param aPaddingMode padding mode + @param aPaddingMode 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. */ IMPORT_C void SetPaddingModeL(TUid aPaddingMode); /** 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. */ IMPORT_C TInt GetMaximumInputLengthL(); /** 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. */ IMPORT_C TInt GetMaximumOutputLengthL(); @@ -113,6 +127,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. */ IMPORT_C void ProcessL(const TDesC8& aInput, TDes8& aOutput); @@ -150,6 +166,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. */ IMPORT_C void ProcessL(const TDesC8& aInput, TDes8& aOutput, TRequestStatus& aRequestStatus);