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
-
PKCS12::CDecPkcs12MacData
Constructor & Destructor Documentation
CDecPkcs12MacData()
CDecPkcs12MacData
|
(
|
)
|
[private]
|
CDecPkcs12MacData(const CDecPkcs12MacData &)
~CDecPkcs12MacData()
~CDecPkcs12MacData
|
(
|
)
|
[virtual]
|
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()
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 &)
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 &)
Member Data Documentation
TPtrC8
iAuthSafeDataPtr
TPtrC8
|
iAuthSafeDataPtr
|
[private]
|
authSafe sequence present in PKCS#12 PFX structure.
CPKCS7DigestInfo * iDigestInfo
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
MacSalt present in the PKCS#12 MacData structure
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.