PKCS12::CDecPkcs12ShroudedKeyBag Class Reference

class PKCS12::CDecPkcs12ShroudedKeyBag : public PKCS12::CDecPkcs12SafeBag

This class decodes the ShroudedKeyBag present in the SafeBag. It has a method to get the PrivatKeyInfo

Inherits from

Constructor & Destructor Documentation

CDecPkcs12ShroudedKeyBag()

CDecPkcs12ShroudedKeyBag ( ) [private]

Constructor.

CDecPkcs12ShroudedKeyBag(const CDecPkcs12ShroudedKeyBag &)

CDecPkcs12ShroudedKeyBag ( const CDecPkcs12ShroudedKeyBag & aDecPkcs12ShroudedKeyBag ) [private]

Copy Constructor.

Parameters

const CDecPkcs12ShroudedKeyBag & aDecPkcs12ShroudedKeyBag A CDecPkcs12ShroudedKeyBag object.

~CDecPkcs12ShroudedKeyBag()

~CDecPkcs12ShroudedKeyBag ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aSafeBagData ) [private]
This decodes the entire KeyBag structure.
leave
KErrAgrument if the data is not a sequence or class tag name is not Universal.
TASN1DecPKCS8

Parameters

const TDesC8 & aSafeBagData Contains a PKCS#12 shroudedKeyBag Structure.

NewL(const TDesC8 &)

IMPORT_C CDecPkcs12ShroudedKeyBag * NewL ( const TDesC8 & aSafeBagData ) [static]

Creates a new PKCS#12KeyBag object.

leave
KErrAgrument if the data is not safeBag structure.

Parameters

const TDesC8 & aSafeBagData Contains a PKCS#12 shroudedKeyBag structure.

PrivateKeyInfoL(TDesC &)

IMPORT_C CDecPKCS8Data * PrivateKeyInfoL ( TDesC & aPassword ) const

The PrivateKey Information present in the ShroudKeyBag. Below is the ASN.1 sequence.

ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier

AlgorithmIdentifier: A type that identifies an algorithm (by object identifier) and associated parameters AlgorithmIdentifier ::= SEQUENCE { algorithm ALGORITHM.&id({SupportedAlgorithms}), parameters ALGORITHM.&Type({SupportedAlgorithms}{@ algorithm}) OPTIONAL }

leave
KErrAgrument if the data is not a sequence or class tag name is not Universal.
leave
KErrNotSupported if otherthan PKCS12 pbeIds.
leave
KErrGeneral if the decryption of the final part length is less than 0.
TASN1DecPKCS5 , CPBEncryptElement , PKCS12KDF , CPBDecryptor , CDecPKCS8Data .

Parameters

TDesC & aPassword

operator=(const CDecPkcs12ShroudedKeyBag &)

CDecPkcs12ShroudedKeyBag & operator= ( const CDecPkcs12ShroudedKeyBag & aDecPkcs12ShroudedKeyBag ) [private]

Assignment operator.

Parameters

const CDecPkcs12ShroudedKeyBag & aDecPkcs12ShroudedKeyBag A CDecPkcs12ShroudedKeyBag object.