CPaddingPKCS1Encryption Class Reference

#include <padding.h>

class CPaddingPKCS1Encryption : public CPadding

Inherits from

Detailed Description

This concrete subclass of CPadding implements PKCS#1 v1.5 encryption padding. It is intended for use with RSA encryption/decryption.

Constructor & Destructor Documentation

CPaddingPKCS1Encryption ( TInt )

IMPORT_CCPaddingPKCS1Encryption(TIntaBlockBytes)[protected]

Constructor

Parameters
aBlockBytesThe block size in bytes.

Member Function Documentation

MinPaddingLength ( void )

TInt MinPaddingLength(void)const [virtual]

Reimplemented from CPadding::MinPaddingLength(void)const

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.

Return Value
A TInt containing the smallest number of padding bytes possible.

NewL ( TInt )

IMPORT_C CPaddingPKCS1Encryption *NewL(TIntaBlockBytes)[static]

Creates a new CPaddingPKCS1Encryption object.

Parameters
aBlockBytesThe block size in bytes.
Return Value
A pointer to the new CPaddingPKCS1Encryption object.

NewLC ( TInt )

IMPORT_C CPaddingPKCS1Encryption *NewLC(TIntaBlockBytes)[static]

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

Parameters
aBlockBytesThe block size in bytes.
Return Value
A pointer to the new CPaddingPKCS1Encryption object.

UnPadL ( const TDesC8 &, TDes8 & )

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

Removes padding from aInput and appends unpadded result to aOutput.

Parameters
aInputData to be unpadded.
aOutputOn return, the unpadded data.