CPaddingPKCS1Signature Class Reference

class CPaddingPKCS1Signature : public CPadding

This concrete subclass of CPadding implements PKCS#1 v1.5 signature padding.

It is intended for use with RSA signing/verifying.

Inherits from

Constructor & Destructor Documentation

CPaddingPKCS1Signature(TInt)

IMPORT_C CPaddingPKCS1Signature ( TInt aBlockBytes ) [protected]

Constructor

Parameters

TInt aBlockBytes The block size in bytes.

CPaddingPKCS1Signature(void)

CPaddingPKCS1Signature ( void ) [private]

Parameters

void

CPaddingPKCS1Signature(const CPaddingPKCS1Signature &)

CPaddingPKCS1Signature ( const CPaddingPKCS1Signature & ) [private]

Parameters

const CPaddingPKCS1Signature &

Member Functions Documentation

DoPadL(const TDesC8 &, TDes8 &)

void DoPadL ( const TDesC8 & aInput,
TDes8 & aOutput
) [private, virtual]

Parameters

const TDesC8 & aInput
TDes8 & aOutput

MinPaddingLength(void)

TInt MinPaddingLength ( void ) const [virtual]

Gets the smallest number of bytes that PadL() will ever add to aInput in order to get a valid block aligned aOutput.

For example, in SSLv3 padding, if the block size is 8 and aInput is 7 bytes, it will append 1 byte of padding. For SSLv3 padding, this is the smallest amount possible as an 8 byte input will add another block size (8 more bytes) of padded data.

Parameters

void

NewL(TInt)

IMPORT_C CPaddingPKCS1Signature * NewL ( TInt aBlockBytes ) [static]

Creates a new CPaddingPKCS1Signature object.

Parameters

TInt aBlockBytes The block size in bytes.

NewLC(TInt)

IMPORT_C CPaddingPKCS1Signature * NewLC ( TInt aBlockBytes ) [static]

Creates a new CPaddingPKCS1Signature object and leaves a pointer to it on the cleanup stack.

Parameters

TInt aBlockBytes The block size in bytes.

UnPadL(const TDesC8 &, TDes8 &)

void UnPadL ( const TDesC8 & aInput,
TDes8 & aOutput
) [virtual]

Removes padding from aInput and appends unpadded result to aOutput.

Parameters

const TDesC8 & aInput Data to be unpadded.
TDes8 & aOutput On return, the unpadded data.

operator=(const CPaddingPKCS1Signature &)

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

Parameters

const CPaddingPKCS1Signature &