TASN1DecPKCS8 Class Reference

#include <decpkcs8data.h>

Link against: asnpkcs.lib

class TASN1DecPKCS8
Public Member Functions
IMPORT_C CDecPKCS8Data *DecodeDERL(const TDesC8 &)
IMPORT_C CDecPKCS8Data *DecodeEncryptedDERL(const TDesC8 &, const TDesC8 &)
IMPORT_C TBoolIsEncryptedPKCS8Data(const TDesC8 &)
IMPORT_C TBoolIsPKCS8Data(const TDesC8 &)

Detailed Description

Provides the means to decode PKCS#8 encoded private keys.

Member Function Documentation

DecodeDERL ( const TDesC8 & )

IMPORT_C CDecPKCS8Data *DecodeDERL(const TDesC8 &aBinaryData)[static]

Decodes DER encoded ASN1 data representing a PKCS#8 clear text private key. See the PKCS#8 specifications for the ASN1 syntax.

Parameters
aBinaryDataA descriptor containing the ASN1 data.
Return Value
A pointer to a CDecPKCS8Data object containing the decoded private key.

DecodeEncryptedDERL ( const TDesC8 &, const TDesC8 & )

IMPORT_C CDecPKCS8Data *DecodeEncryptedDERL(const TDesC8 &aBinaryData,
const TDesC8 &aPassword
)[static]

Decodes DER encoded ASN1 data representing a PKCS#8 encrypted private key. See the PKCS#8 specifications for the ASN1 syntax.

Parameters
aBinaryDataA descriptor containing the ASN1 data.
aPasswordThe password to decrypt the key.
Return Value
A pointer to a CDecPKCS8Data object containing the decoded private key.

IsEncryptedPKCS8Data ( const TDesC8 & )

IMPORT_C TBoolIsEncryptedPKCS8Data(const TDesC8 &aBinaryData)[static]

Determines if some binary data is an encrypted pkcs#8 private key.

Parameters
aBinaryDataA descriptor containing the data.
Return Value
ETrue if binary data is an encrypted pkcs#8 private key or EFalse if it is not.

IsPKCS8Data ( const TDesC8 & )

IMPORT_C TBoolIsPKCS8Data(const TDesC8 &aBinaryData)[static]

Determines if some binary data is a pkcs#8 clear text private key.

Parameters
aBinaryDataA descriptor containing the data. This must be at least KIsPKCS8DataMinLength bytes long.
Return Value
ETrue if binary data is pkcs#8 clear text private key or EFalse if it is not.