aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dh/dh.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-02 15:05:46 -0400
committerJack Lloyd <[email protected]>2016-11-03 11:57:10 -0400
commit8d50c82b43b34b70d19b0faaeab6b37f2eae066c (patch)
tree9cb7478fb7c37c66e140bc09ca77bf0ede07cc76 /src/lib/pubkey/dh/dh.h
parentb1021ca76bb3c47b1b520421ccece38d772e5907 (diff)
Remove automatic self-testing of public and private keys
Rarely expected and often causes performance problems, especially for private keys. Instead applications should call check_key explicitly to validate keys when necessary. Note this removal doesn't apply to tests like ECDH on-the-curve tests, where a check on the public key is required for security of our own key. Updates most APIs to remove RNG calls, where they are no longer required. Exception is PKCS8 interface, pending further work there (see GH #685) it just ignores the RNG argument now.
Diffstat (limited to 'src/lib/pubkey/dh/dh.h')
-rw-r--r--src/lib/pubkey/dh/dh.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/pubkey/dh/dh.h b/src/lib/pubkey/dh/dh.h
index e46a35dff..40011cb1c 100644
--- a/src/lib/pubkey/dh/dh.h
+++ b/src/lib/pubkey/dh/dh.h
@@ -58,11 +58,9 @@ class BOTAN_DLL DH_PrivateKey : public DH_PublicKey,
* Load a private key.
* @param alg_id the X.509 algorithm identifier
* @param key_bits PKCS #8 structure
- * @param rng a random number generator
*/
DH_PrivateKey(const AlgorithmIdentifier& alg_id,
- const secure_vector<byte>& key_bits,
- RandomNumberGenerator& rng);
+ const secure_vector<byte>& key_bits);
/**
* Create a private key.