CPKCS7EncryptedDataObject Class Reference
class CPKCS7EncryptedDataObject : public CBase |
A representation of a PKCS7 (Encrypted data) entity This class decodes the PKCS7 Encrypted Data content. It provides various exported methods which will return the values present in the EncryptedData ::= SEQUENCE.
Inherits from
- CPKCS7EncryptedDataObject
Constructor & Destructor Documentation
CPKCS7EncryptedDataObject(void)
CPKCS7EncryptedDataObject | ( | void | | ) | [private] |
CPKCS7EncryptedDataObject(const CPKCS7EncryptedDataObject &)
~CPKCS7EncryptedDataObject()
~CPKCS7EncryptedDataObject | ( | ) | [virtual] |
Member Functions Documentation
ConstructL(const CPKCS7ContentInfo &)
This decrypt the encrypted data. Below is the ASN1 syntax.
EncryptedData ::= SEQUENCE { version Version, encryptedContentInfo EncryptedContentInfo } EncryptedContentInfo ::= SEQUENCE { contentType PKCS7-CONTENT-TYPE.&id({PKCS7ContentTable}), contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, encryptedContent [0] ENCRYPTED{PKCS7-CONTENT-TYPE.&Type({PKCS7ContentTable}{@.contentType})} OPTIONAL } EncryptedContent ::= OCTET STRING
ContentInfo ::= SEQUENCE { contentType ContentType, content[0] EXPLICIT ANY DEFINED BY contentType OPTIONAL } ContentType ::= OBJECT IDENTIFIER
-
leave
- KErrArgument if the data is not valid PKCS#7 EncryptedData Structure.
CPKCS7ContentInfo
ContentType()
Provides access to the ContentType present within the EncryptedContentInfo. ContentType indicates the type of content.This is represented using the OID.
DecodeContentEncryptionAlgorithmL(const TDesC8 &)
Provides access to the Encrypt Parameters present within the ContentEncryptionAlgorithm Sequence. Below is the ASN1 Syntax.
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 }
Parameters
const TDesC8 & aBinaryData | which is the ContentEncryptionAlgorithmIdentifier and is AlgorithIdentifier Type. AlgorithmIdentifier: A type that identifies an algorithm (by object identifier) and associated parameters. |
DecryptDataL(const TDesC &)
IMPORT_C HBufC8 * | DecryptDataL | ( | const TDesC & | aPassword | ) | const |
This method decrypts the encrypted information. The caller assumes ownership of the returned object.
- leave
- KErrNotSupported if otherthan pkcs12 pbeIds used.
- leave
- KErrGeneral if decrypt descriptor length is less than 0.
PKCS12KDF,
TPBPassword,
CPBEncryptElement,
CPBDecryptor.
Parameters
const TDesC & aPassword | is the password used for decryption. |
EncryptParams()
Provides access to the contentEncryptionAlgorithm within the EncryptedContentInfo SEQUENCE.
EncryptedContentInfoData()
IMPORT_C const TDesC8 & | EncryptedContentInfoData | ( | ) | const |
Provides access to the encryptedContent within the EncryptedContentInfo SEQUENCE. encryptedContent is OPTIONAL in EncryptedContentInfo SEQUENCE This will return a NULL pointer in case there is no encryptedContent
NewL(const CPKCS7ContentInfo &)
Creates a new PKCS#7 EncryptedData object.
Version()
IMPORT_C TInt | Version | ( | ) | const |
Provides access to the version number within the EncryptedData SEQUENCE. Version is the syntax version number.It shall be 0 for this version of the standard
operator=(const CPKCS7EncryptedDataObject &)
Member Enumerations Documentation
Enum TContentType
Identifies the type of ContentType present in the EncryptedContentInfo ::= SEQUENCE
Member Data Documentation
TContentType
iContentType
Indicates the type of content in PKCS7 EncryptedContentInfo Sequence
CPBEncryptParms * iEncryptParams
Identifies the content-encryption algorithm (and any associated parameters) under which the content is encrypted
TPtrC8
iEncryptedContent
TPtrC8
| iEncryptedContent | [private] |
Contains the encrypted content
TInt
iVersion
version is the syntax version number in PKCS#7 EncryptedData ::= SEQUENCE
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.