#include <asymmetric.h>
class CRSAPKCS1v15Encryptor : public CEncryptor |
Protected Attributes | |
---|---|
CPaddingPKCS1Encryption * | iPadding |
const CRSAPublicKey & | iPublicKey |
Public Member Functions | |
---|---|
virtual | ~CRSAPKCS1v15Encryptor(void) |
virtual void | EncryptL(const TDesC8 &, TDes8 &) |
virtual TInt | MaxInputLength(void) |
virtual TInt | MaxOutputLength(void) |
IMPORT_C CRSAPKCS1v15Encryptor * | NewL(const CRSAPublicKey &) |
IMPORT_C CRSAPKCS1v15Encryptor * | NewLC(const CRSAPublicKey &) |
Protected Member Functions | |
---|---|
CRSAPKCS1v15Encryptor(const CRSAPublicKey &) | |
void | ConstructL(void) |
Implementation of RSA encryption as described in PKCS#1 v1.5.
CRSAPKCS1v15Encryptor | ( | const CRSAPublicKey & | aKey | ) | [protected] |
~CRSAPKCS1v15Encryptor | ( | void | ) | [virtual] |
The destructor frees all resources owned by the object, prior to its destruction.
void | ConstructL | ( | void | ) | [protected] |
Reimplemented from CEncryptor::EncryptL(const TDesC8 &,TDes8 &)const
Encrypts the specified plaintext into ciphertext.
Parameters | |
---|---|
aInput | The plaintext |
aOutput | On return, the ciphertext |
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 CRSAPKCS1v15Encryptor * | NewL | ( | const CRSAPublicKey & | aKey | ) | [static] |
Creates a new RSA encryptor object using PKCS#1 v1.5 padding.
Parameters | |
---|---|
aKey | The RSA encryption key |
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 CRSAPKCS1v15Encryptor * | NewLC | ( | const CRSAPublicKey & | aKey | ) | [static] |
Creates a new RSA encryptor object using PKCS#1 v1.5 padding.
The returned pointer is put onto the cleanup stack.
Parameters | |
---|---|
aKey | The RSA encryption key |
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 |