| 682 | } |
| 683 | |
| 684 | void CCrypto::GenerateKeyExchangeKeyPair( CECKeyExchangePublicKey *pPublicKey, CECKeyExchangePrivateKey *pPrivateKey ) |
| 685 | { |
| 686 | uint8 rgubSecretData[32]; |
| 687 | GenerateRandomBlock( rgubSecretData, 32 ); |
| 688 | VerifyFatal( pPrivateKey->SetRawDataAndWipeInput( rgubSecretData, 32 ) ); |
| 689 | if ( pPublicKey ) |
| 690 | { |
| 691 | VerifyFatal( pPrivateKey->GetPublicKey( pPublicKey ) ); |
| 692 | } |
| 693 | } |
| 694 | |
| 695 | void CCrypto::GenerateSigningKeyPair( CECSigningPublicKey *pPublicKey, CECSigningPrivateKey *pPrivateKey ) |
| 696 | { |
nothing calls this directly
no test coverage detected