PKCS12::CDecPkcs12MacData Class Reference

class PKCS12::CDecPkcs12MacData : public CBase

This class decodes the MacData It has methods to return the PKCS#12 MACDATA structure.

Inherits from

Constructor & Destructor Documentation

CDecPkcs12MacData()

CDecPkcs12MacData ( ) [private]

Constructor.

CDecPkcs12MacData(const CDecPkcs12MacData &)

CDecPkcs12MacData ( const CDecPkcs12MacData & aDecPkcs12MacData ) [private]

Copy Constructor.

Parameters

const CDecPkcs12MacData & aDecPkcs12MacData A CDecPkcs12MacData object.

~CDecPkcs12MacData()

~CDecPkcs12MacData ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL(const TDesC8 &, const TDesC8 &)

void ConstructL ( const TDesC8 & aMacData,
const TDesC8 & aAuthSafeData
) [private]
This decodes the entire MacData structure.
leave
KErrArgument if the data is not Pkcs12 macData structure.
CPKCS7DigestInfo

Parameters

const TDesC8 & aMacData contains a PKCS#12 MacData Structure.
const TDesC8 & aAuthSafeData is the ContentData present in the authSafe Sequence of PKCS#12 PFX Structure.

DigestInfo()

IMPORT_C const CPKCS7DigestInfo & DigestInfo ( ) const

The DigestInfo present in the MacData. It has the DigestAlgorithmIdentifier, and the Digest.

IterationCount()

IMPORT_C TInt IterationCount ( ) const

This method returns the Iteration Count. It is used in creating the key.

MacSalt()

IMPORT_C const TDesC8 & MacSalt ( ) const

This method returns the MacSalt. MacSalt is used as input to the key generation mechanism.

NewL(const TDesC8 &, const TDesC8 &)

IMPORT_C CDecPkcs12MacData * NewL ( const TDesC8 & aMacData,
const TDesC8 & aAuthSafeData
) [static]

Creates a new PKCS#12MacData object.

leave
KErrArgument if the data is not Pkcs12 macData structure.

Parameters

const TDesC8 & aMacData contains a PKCS#12 MacData Structure.
const TDesC8 & aAuthSafeData is the ContentData present in the authSafe Sequence of PKCS#12 PFX Structure.

VerifyIntegrityL(const TDesC &)

IMPORT_C TBool VerifyIntegrityL ( const TDesC & aPassword ) const
This method does the Integrity Check for Password Integrity Mode by comparing the Digest present in the MacData of the PKCS#12 Structure with the hash generated from the content field of the authenticated Safe, password, the Iteration Count and the Salt present in the MacData.
leave
KErrNotSupported if the Pkcs7 digest algorithm is otherthan MD2, MD5 and SHA-1
PKCS12KDF , CMessageDigest ,

Parameters

const TDesC & aPassword contains the password to derive the key.

operator=(const CDecPkcs12MacData &)

CDecPkcs12MacData & operator= ( const CDecPkcs12MacData & aDecPkcs12MacData ) [private]

Assignment operator.

Parameters

const CDecPkcs12MacData & aDecPkcs12MacData A CDecPkcs12MacData object.

Member Data Documentation

TPtrC8 iAuthSafeDataPtr

TPtrC8 iAuthSafeDataPtr [private]

authSafe sequence present in PKCS#12 PFX structure.

CPKCS7DigestInfo * iDigestInfo

CPKCS7DigestInfo * iDigestInfo [private]

DigestInfo(PKCS#7 structure) present in the PKCS#12 MacData structure

TInt iIterationCount

TInt iIterationCount [private]

Iteration Count present in the PKCS#12 MacData structure

TPtrC8 iMacSalt

TPtrC8 iMacSalt [private]

MacSalt present in the PKCS#12 MacData structure