Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: x509keys.h
Link against: x509.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class TASN1EncDSAPublicKey

class TASN1EncDSAPublicKey;

Description

Class for encoding DSA public keys to ASN.1 encoding.

Members

Defined in TASN1EncDSAPublicKey:
EncodeDERL(), EncodeParamsLC(), EncodePublicValueLC()


Member functions


EncodeDERL()

IMPORT_C CASN1EncSequence *EncodeDERL(const CDSAPublicKey &aKey) const;

Description

Encodes the supplied public key into a buffer in DER format.

Note that the encoding has the following format:

     SEQUENCE-OF
         SEQUENCE-OF
             INTEGER p
             INTEGER q
             INTEGER g
         BIT STRING (encoded INTEGER public value)

Parameters

const CDSAPublicKey &aKey

Key to encode.

Return value

CASN1EncSequence *

Sequence containing public key information.


EncodeParamsLC()

IMPORT_C CASN1EncSequence *EncodeParamsLC(const CDSAPublicKey &aKey) const;

Description

Encodes DSA parameters into an ASN.1 encoding structure suitable for inclusion into other objects, like a PKCS#10 certificate request.

Note that the encoding has the following form:

     SEQUENCE-OF
         INTEGER p
         INTEGER q
         INTEGER g

Parameters

const CDSAPublicKey &aKey

DSA public key.

Return value

CASN1EncSequence *

ASN.1 encoding structure on the cleanup stack.


EncodePublicValueLC()

IMPORT_C CASN1EncBitString *EncodePublicValueLC(const CDSAPublicKey &aKey) const;

Description

Encodes a public key as a bit string.

Parameters

const CDSAPublicKey &aKey

DSA public key.

Return value

CASN1EncBitString *

ASN.1 bit string (public key). This is left on the cleanup stack.