CPaddingPKCS1Encryption Class Reference
class CPaddingPKCS1Encryption : public CPadding |
This concrete subclass of CPadding implements PKCS#1 v1.5 encryption padding. It is intended for use with RSA encryption/decryption.
Inherited Functions |
---|
| CBase::CBase() |
| CBase::Delete(CBase *) |
| CBase::Extension_(TUint,TAny *&,TAny *) |
| CBase::operator new(TUint) |
| CBase::operator new(TUint,TAny *) |
| CBase::operator new(TUint,TLeave) |
| CBase::operator new(TUint,TLeave,TUint) |
| CBase::operator new(TUint,TUint) |
| CBase::~CBase() |
| CPadding::BlockSize(void)const |
| CPadding::CPadding(TInt) |
| CPadding::GetExtension(TUint,TAny *&,TAny *) |
| CPadding::MaxPaddedLength(TInt)const |
| CPadding::MaxUnPaddedLength(TInt)const |
| CPadding::PadL(const TDesC8 &,TDes8 &) |
| CPadding::SetBlockSize(TInt) |
Constructor & Destructor Documentation
CPaddingPKCS1Encryption(TInt)
IMPORT_C | CPaddingPKCS1Encryption | ( | TInt | aBlockBytes | ) | [protected] |
Parameters
TInt aBlockBytes | The block size in bytes. |
CPaddingPKCS1Encryption(void)
CPaddingPKCS1Encryption | ( | void | | ) | [private] |
CPaddingPKCS1Encryption(const CPaddingPKCS1Encryption &)
Member Functions Documentation
DoPadL(const TDesC8 &, TDes8 &)
void | DoPadL | ( | const TDesC8 & | aInput, |
| TDes8 & | aOutput |
| ) | [private, virtual] |
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.
NewL(TInt)
Parameters
TInt aBlockBytes | The block size in bytes. |
NewLC(TInt)
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 CPaddingPKCS1Encryption &)
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.