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
- 
- 
| Success | P6R::eOk |  |  - 
| Failure | eInvalidArg | One of the parameters is NULL or keySize is zero. |  - 
| eNotInitialized | A successful call to initialize was not made before this call. |  - 
| eIoError | Could not create either the public of private key file. |  - 
| eKeyGenFail | The key generation calculation failed. Exception record provides detailed error info. |  - 
| eKeyGenParamsFailed | The key generation calculation failed. Exception record provides detailed error info. |