CPKCS7DigestInfo Class Reference

class CPKCS7DigestInfo : public CBase

Provides the means to decode PKCS#7 encoded DigestInfo Structure.

Inherits from

Constructor & Destructor Documentation

CPKCS7DigestInfo()

CPKCS7DigestInfo()[private]

Constructor.

CPKCS7DigestInfo(const CPKCS7DigestInfo &)

CPKCS7DigestInfo(const CPKCS7DigestInfo &aDigestInfo)[private]

Copy Constructor.

Parameters

const CPKCS7DigestInfo & aDigestInfoA CPKCS7DigestInfo object.

~CPKCS7DigestInfo()

~CPKCS7DigestInfo()[virtual]

Destructor.

Member Functions Documentation

Algorithm()

IMPORT_C TAlgorithmIdAlgorithm()const

An Algorithm present DigestAlgorithmIdentifier.

ConstructL(const TDesC8 &)

voidConstructL(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 }

leave
KErrArgument if digestAlgorithm and digest is not present.
leave
KErrNotSupported if algorithm is other than MD2, MD5 and SHA1.
TASN1DecGeneric, CX509AlgorithmIdentifier.

Parameters

const TDesC8 & aRawDataA 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 &)

IMPORT_C CPKCS7DigestInfo *NewL(const TDesC8 &aRawData)[static]
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 & aRawDatacontains a PKCS#7 DigestInfo Structure

operator=(const CPKCS7DigestInfo &)

CPKCS7DigestInfo &operator=(const CPKCS7DigestInfo &aDigestInfo)[private]

Assignment operator.

Parameters

const CPKCS7DigestInfo & aDigestInfoA CPKCS7DigestInfo object.

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

TPtrC8 iDigest[private]

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