Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IGenKeys::genDSAKeyPair ( p6ICryptoKey **  ppPubKey,
p6ICryptoKey **  ppPrvKey,
P6UINT32  keySize 
)
pure virtual

Digital Signature Algorithm (DSA) – Public Key Cryptography Generate a public and private DSA key pair and return the newly generated keys in p6ICryptoKey interfaces which may be passed to other crypto function, or serialized to a buffer or file.

Parameters
ppPubKey[ out ] The address of an p6ICryptoKey interface pointer in which will be returned the generated public key
ppPrvKey[ out ] The address of an p6ICryptoKey interface pointer in which will be returned the generated private key
keySize[ in ] Number of bits used in generating key pair.
Returns
SuccessP6R::eOk 
FailureeInvalidArgOne of the parameters is NULL or keySize is zero.
eNotInitializedA successful call to initialize was not made before this call.
eIoErrorCould not create either the public of private key file.
eKeyGenFailThe key generation calculation failed. Exception record provides detailed error info.
eKeyGenParamsFailedThe key generation calculation failed. Exception record provides detailed error info.