#include <padding.h>
class CPaddingPKCS1Signature : public CPadding |
Public Member Functions | |
---|---|
virtual TInt | MinPaddingLength(void) |
IMPORT_C CPaddingPKCS1Signature * | NewL(TInt) |
IMPORT_C CPaddingPKCS1Signature * | NewLC(TInt) |
virtual void | UnPadL(const TDesC8 &, TDes8 &) |
Protected Member Functions | |
---|---|
CPaddingPKCS1Signature(TInt) |
This concrete subclass of CPadding implements PKCS#1 v1.5 signature padding.
It is intended for use with RSA signing/verifying.
IMPORT_C | CPaddingPKCS1Signature | ( | TInt | aBlockBytes | ) | [protected] |
Constructor
Parameter | Description |
---|---|
aBlockBytes | The block size in bytes. |
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.
Returns: A TInt containing the smallest number of padding bytes possible.
IMPORT_C CPaddingPKCS1Signature * | NewL | ( | TInt | aBlockBytes | ) | [static] |
Creates a new CPaddingPKCS1Signature object.
Parameter | Description |
---|---|
aBlockBytes | The block size in bytes. |
Returns: A pointer to the new CPaddingPKCS1Signature object.
IMPORT_C CPaddingPKCS1Signature * | NewLC | ( | TInt | aBlockBytes | ) | [static] |
Creates a new CPaddingPKCS1Signature object and leaves a pointer to it on the cleanup stack.
Parameter | Description |
---|---|
aBlockBytes | The block size in bytes. |
Returns: A pointer to the new CPaddingPKCS1Signature object.
Reimplemented from CPadding::UnPadL(const TDesC8 &,TDes8 &)
Removes padding from aInput and appends unpadded result to aOutput.
Parameter | Description |
---|---|
aInput | Data to be unpadded. |
aOutput | On return, the unpadded data. |