#include <asymmetric.h>
| class CRSAPKCS1v15Decryptor : public CDecryptor |
| Protected Attributes | |
|---|---|
| CPaddingPKCS1Encryption * | iPadding |
| const CRSAPrivateKey & | iPrivateKey |
| Public Member Functions | |
|---|---|
| virtual | ~CRSAPKCS1v15Decryptor(void) |
| virtual void | DecryptL(const TDesC8 &, TDes8 &) |
| virtual TInt | MaxInputLength(void) |
| virtual TInt | MaxOutputLength(void) |
| IMPORT_C CRSAPKCS1v15Decryptor * | NewL(const CRSAPrivateKey &) |
| IMPORT_C CRSAPKCS1v15Decryptor * | NewLC(const CRSAPrivateKey &) |
| Protected Member Functions | |
|---|---|
| CRSAPKCS1v15Decryptor(const CRSAPrivateKey &) | |
| void | ConstructL(void) |
Implementation of RSA decryption as described in PKCS#1 v1.5.
| CRSAPKCS1v15Decryptor | ( | const CRSAPrivateKey & | aKey | ) | [protected] |
| ~CRSAPKCS1v15Decryptor | ( | void | ) | [virtual] |
The destructor frees all resources owned by the object, prior to its destruction.
| void | ConstructL | ( | void | ) | [protected] |
Reimplemented from CDecryptor::DecryptL(const TDesC8 &,TDes8 &)const
Decrypts the specified ciphertext into plaintext
| Parameters | |
|---|---|
| aInput | The ciphertext to be decrypted |
| aOutput | On return, the plaintext |
| Panic Codes | |
|---|---|
| KCryptoPanic | If the input data is too long. See ECryptoPanicInputTooLarge |
| KCryptoPanic | If the supplied output descriptor is not large enough to store the result. See ECryptoPanicOutputDescriptorOverflow |
| TInt | MaxInputLength | ( | void | ) | const [virtual] |
Reimplemented from MCryptoSystem::MaxInputLength(void)const
Gets the maximum size of input accepted by this object.
| TInt | MaxOutputLength | ( | void | ) | const [virtual] |
Reimplemented from MCryptoSystem::MaxOutputLength(void)const
Gets the maximum size of output that can be generated by this object.
| IMPORT_C CRSAPKCS1v15Decryptor * | NewL | ( | const CRSAPrivateKey & | aKey | ) | [static] |
Creates a new RSA decryptor object using PKCS#1 v1.5 padding.
| Parameters | |
|---|---|
| aKey | The RSA private key for decryption |
| Leave Codes | |
|---|---|
| KErrKeyNotWeakEnough | If the key size is larger than that allowed by the cipher strength restrictions of the crypto library. See |
| KErrKeySize | If the key length is too small |
| IMPORT_C CRSAPKCS1v15Decryptor * | NewLC | ( | const CRSAPrivateKey & | aKey | ) | [static] |
Creates a new RSA decryptor object using PKCS#1 v1.5 padding
The returned pointer is put onto the cleanup stack.
| Parameters | |
|---|---|
| aKey | The RSA private key for decryption |
| Leave Codes | |
|---|---|
| KErrKeyNotWeakEnough | If the key size is larger than that allowed by the cipher strength restrictions of the crypto library. See |
| KErrKeySize | If the key length is too small |
| KErrNotSupported | If the RSA private key is not a supported TRSAPrivateKeyType |