#include <asymmetric.h>
| class CRSAPKCS1v15Signer : public CRSASigner |
| Protected Attributes | |
|---|---|
| CPaddingPKCS1Signature * | iPadding |
| const CRSAPrivateKey & | iPrivateKey |
| Public Member Functions | |
|---|---|
| ~CRSAPKCS1v15Signer(void) | |
| virtual TInt | MaxInputLength(void) |
| virtual TInt | MaxOutputLength(void) |
| IMPORT_C CRSAPKCS1v15Signer * | NewL(const CRSAPrivateKey &) |
| IMPORT_C CRSAPKCS1v15Signer * | NewLC(const CRSAPrivateKey &) |
| virtual CRSASignature * | SignL(const TDesC8 &) |
| Protected Member Functions | |
|---|---|
| CRSAPKCS1v15Signer(const CRSAPrivateKey &) | |
| void | ConstructL(void) |
Implementation of RSA signing as described in PKCS#1 v1.5.
This class creates RSA signatures following the RSA PKCS#1 v1.5 standard (with the one caveat noted below) and using PKCS#1 v1.5 signature padding. The only exception is that the SignL() function simply performs a 'raw' PKCS#1 v1.5 sign operation on whatever it is given. It does not hash or in any way manipulate the input data before signing.
| CRSAPKCS1v15Signer | ( | const CRSAPrivateKey & | aKey | ) | [protected] |
| ~CRSAPKCS1v15Signer | ( | void | ) |
The destructor frees all resources owned by the object, prior to its destruction.
| void | ConstructL | ( | void | ) | [protected] |
| TInt | MaxInputLength | ( | void | ) | const [virtual] |
Reimplemented from MSignatureSystem::MaxInputLength(void)const
Gets the maximum size of input accepted by this object.
| TInt | MaxOutputLength | ( | void | ) | const [virtual] |
Reimplemented from CRSASigner::MaxOutputLength(void)const
Gets the maximum size of output that can be generated by this object.
| IMPORT_C CRSAPKCS1v15Signer * | NewL | ( | const CRSAPrivateKey & | aKey | ) | [static] |
Creates a new CRSAPKCS1v15Signer object from a specified RSA private key.
| Parameters | |
|---|---|
| aKey | The RSA private key to be used for signing |
| Leave Codes | |
|---|---|
| KErrKeySize | If the key length is too small |
| IMPORT_C CRSAPKCS1v15Signer * | NewLC | ( | const CRSAPrivateKey & | aKey | ) | [static] |
Creates a new CRSAPKCS1v15Signer object from a specified RSA private key.
The returned pointer is put onto the cleanup stack.
| Parameters | |
|---|---|
| aKey | The RSA private key to be used for signing |
| Leave Codes | |
|---|---|
| KErrKeySize | If the key length is too small |
| CRSASignature * | SignL | ( | const TDesC8 & | aInput | ) | const [virtual] |
Reimplemented from CSigner< CRSASignature >::SignL(const TDesC8 &)const
Digitally signs the specified input message
| Parameters | |
|---|---|
| aInput | The raw data to sign, typically a hash of the actual message |
| Leave Codes | |
|---|---|
| KErrNotSupported | If the private key is not a supported TRSAPrivateKeyType |
| Panic Codes | |
|---|---|
| ECryptoPanicInputTooLarge | If aInput is larger than |