CPKCS7DigestInfo Class Reference
class CPKCS7DigestInfo : public CBase
|
Provides the means to decode PKCS#7 encoded DigestInfo Structure.
Constructor & Destructor Documentation
CPKCS7DigestInfo()
CPKCS7DigestInfo
|
(
|
)
|
[private]
|
CPKCS7DigestInfo(const CPKCS7DigestInfo &)
~CPKCS7DigestInfo()
~CPKCS7DigestInfo
|
(
|
)
|
[virtual]
|
Member Functions Documentation
Algorithm()
IMPORT_C
TAlgorithmId
|
Algorithm
|
(
|
)
|
const
|
An Algorithm present DigestAlgorithmIdentifier.
ConstructL(const TDesC8 &)
void
|
ConstructL
|
(
|
const
TDesC8
&
|
aRawData
|
)
|
[private]
|
Decodes the given ASN1 DigestInfo. Below is the ASN1 syntax
DigestInfo ::= SEQUENCE { digestAlgorithm DigestAlgorithmIdentifier, digest Digest } Digest ::= OCTET String DigestAlgorithmIdentifier ::= AlgorithmIdentifier AlgorithmIdentifier ::= SEQUENCE { algorithm ALGORITHM.&id({SupportedAlgorithms}), parameters ALGORITHM.&Type({SupportedAlgorithms}{@ algorithm}) OPTIONAL }
Parameters
const
TDesC8
& aRawData
|
A descriptor containing the PKCS7 DigestInfo Sequence.
|
Digest()
IMPORT_C const
TDesC8
&
|
Digest
|
(
|
)
|
const
|
The Digest which is in the DigestInfo.
EncodedParams()
IMPORT_C const
TPtrC8
&
|
EncodedParams
|
(
|
)
|
const
|
Encoded Parameters present in the DigestAlgorithmIdentifier. The client has to check for data length. It is 0 in case there are no EncodedParams
NewL(const TDesC8 &)
Creates a new PKCS#7 DigestInfo object.
-
leave
-
KErrArgument if digestAlgorithm and digest is not present.
-
leave
-
KErrNotSupported if algorithm is other than MD2, MD5 and SHA1.
Parameters
const
TDesC8
& aRawData
|
contains a PKCS#7 DigestInfo Structure
|
operator=(const CPKCS7DigestInfo &)
Member Data Documentation
TAlgorithmId
iAlgorithmId
TAlgorithmId
|
iAlgorithmId
|
[private]
|
The object identifier which identifies the message-digest algorithm. A message-digest algorithm maps an octet string (the message) to another octet string (the message digest)
TPtrC8
iDigest
The Digest is present in the DigestInfo. It is the result of the message-digesting process
TPtrC8
iEncodedParams
TPtrC8
|
iEncodedParams
|
[private]
|
Encoded Parameters which is in the DigestAlgorithmIdentifier
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.