CRSAPKCS1v15Signer Class Reference

class CRSAPKCS1v15Signer : public CRSASigner

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.

Inherits from

Constructor & Destructor Documentation

CRSAPKCS1v15Signer(const CRSAPrivateKey &)

CRSAPKCS1v15Signer(const CRSAPrivateKey &aKey)[protected]

Parameters

const CRSAPrivateKey & aKey

CRSAPKCS1v15Signer(const CRSAPKCS1v15Signer &)

CRSAPKCS1v15Signer(const CRSAPKCS1v15Signer &)[private]

Parameters

const CRSAPKCS1v15Signer &

~CRSAPKCS1v15Signer(void)

~CRSAPKCS1v15Signer(void)

The destructor frees all resources owned by the object, prior to its destruction.

Parameters

void

Member Functions Documentation

ConstructL(void)

voidConstructL(void)[protected]

Parameters

void

MaxInputLength(void)

TInt MaxInputLength(void)const [virtual]

Parameters

void

MaxOutputLength(void)

TInt MaxOutputLength(void)const [virtual]

Gets the maximum size of output that can be generated by this object.

Parameters

void

NewL(const CRSAPrivateKey &)

IMPORT_C CRSAPKCS1v15Signer *NewL(const CRSAPrivateKey &aKey)[static]

Creates a new CRSAPKCS1v15Signer object from a specified RSA private key.

leave
KErrKeySize If the key length is too small

Parameters

const CRSAPrivateKey & aKeyThe RSA private key to be used for signing

NewLC(const CRSAPrivateKey &)

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.

leave
KErrKeySize If the key length is too small

Parameters

const CRSAPrivateKey & aKeyThe RSA private key to be used for signing

SignL(const TDesC8 &)

CRSASignature *SignL(const TDesC8 &aInput)const [virtual]

Digitally signs the specified input message

leave
KErrNotSupported If the private key is not a supported TRSAPrivateKeyType
panic
ECryptoPanicInputTooLarge If aInput is larger than MaxInputLength(), which is likely to happen if the caller has passed in something that has not been hashed.

Parameters

const TDesC8 & aInputThe raw data to sign, typically a hash of the actual message

operator=(const CRSAPKCS1v15Signer &)

CRSAPKCS1v15Signer &operator=(const CRSAPKCS1v15Signer &)[private]

Parameters

const CRSAPKCS1v15Signer &

Member Data Documentation

CPaddingPKCS1Signature * iPadding

CPaddingPKCS1Signature *iPadding[protected]

The PKCS#1 v1.5 signature padding

const CRSAPrivateKey & iPrivateKey

const CRSAPrivateKey &iPrivateKey[protected]

The RSA private key to be used for signing