class TASN1DecDSAKeyPair |
Class for decoding DSA key pairs from ASN.1 DER encoding.
Public Member Functions | |
---|---|
IMPORT_C void | DecodeDERL(const TDesC8 &, TInt &, CDSAPublicKey *&, CDSAPrivateKey *&) |
IMPORT_C void | DecodeDERL | ( | const TDesC8 & | aDER, |
TInt & | aPos, | |||
CDSAPublicKey *& | aPublicKey, | |||
CDSAPrivateKey *& | aPrivateKey | |||
) |
Decodes a DSA key pair from a buffer containing an ASN.1 DER-encoded private key.
The encoding of the private key contains public key components as well.
* SEQUENCE-OF * INTEGER version (==0, ignored) * INTEGER p (public prime) * INTEGER q (160-bit public subprime, q | p-1) * INTEGER g (public generator of subgroup) * INTEGER x (private key) * INTEGER y (public key y=g^x) *
const TDesC8 & aDER | DER-encoded private key. |
TInt & aPos | Position in the buffer to start decoding (updated on exit). |
CDSAPublicKey *& aPublicKey | On return, the DSA public key object |
CDSAPrivateKey *& aPrivateKey | On return, the DSA private key object |
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.