diff options
author | Jack Lloyd <[email protected]> | 2016-01-04 02:42:24 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-01-04 02:42:24 -0500 |
commit | b2722fd321dcefcfc7111cc8185bb9cdc3f5e112 (patch) | |
tree | d8c184508348206591f5eb8dd1680239c6fa18b0 /src/lib/pubkey/pubkey.h | |
parent | e61e64e37393be1827a9db27c95e4cc9d4af43dd (diff) |
Add ECDH via OpenSSL
Expose provider param in PK_Key_Agreement API
Handle multiple providers in key agreement tests
Fix some funky formatting of P-521 EC points in ecdh.vec which was
being rejected by OpenSSL; for whatever reason the CAVS file had
the affine coords with far more leading zeros than necessary.
Diffstat (limited to 'src/lib/pubkey/pubkey.h')
-rw-r--r-- | src/lib/pubkey/pubkey.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/pubkey/pubkey.h b/src/lib/pubkey/pubkey.h index a8caf58ac..bfcde2190 100644 --- a/src/lib/pubkey/pubkey.h +++ b/src/lib/pubkey/pubkey.h @@ -325,8 +325,11 @@ class BOTAN_DLL PK_Key_Agreement * Construct a PK Key Agreement. * @param key the key to use * @param kdf name of the KDF to use (or 'Raw' for no KDF) + * @param provider the algo provider to use (or empty for default) */ - PK_Key_Agreement(const Private_Key& key, const std::string& kdf); + PK_Key_Agreement(const Private_Key& key, + const std::string& kdf, + const std::string& provider = ""); /* * Perform Key Agreement Operation |