diff options
author | Krzysztof Kwiatkowski <[email protected]> | 2017-06-10 17:43:43 +0100 |
---|---|---|
committer | Krzysztof Kwiatkowski <[email protected]> | 2017-06-10 17:43:43 +0100 |
commit | 3619c2f47e5aaa1eb76f72e9751c6a98b8f2ca46 (patch) | |
tree | 5adaaa805c26cb8a376c08955811a7b6abba1dfe /src/lib/ffi/ffi.h | |
parent | 30568fc980e64d8692e1bb747d5b26f6ab62d1bb (diff) |
FFI: Add functions specific to ECDSA and ECDH
Diffstat (limited to 'src/lib/ffi/ffi.h')
-rw-r--r-- | src/lib/ffi/ffi.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h index e5a399bbd..a179e5fa4 100644 --- a/src/lib/ffi/ffi.h +++ b/src/lib/ffi/ffi.h @@ -864,16 +864,24 @@ BOTAN_DLL int botan_pubkey_ed25519_get_pubkey(botan_pubkey_t key, /* * Algorithm specific key operations: ECDSA and ECDH */ -BOTAN_DLL int botan_privkey_load_ec(botan_privkey_t* key, +BOTAN_DLL int botan_privkey_load_ecdsa(botan_privkey_t* key, const botan_mp_t scalar, const char* curve_name); +BOTAN_DLL int botan_pubkey_load_ecdsa(botan_pubkey_t* key, + const botan_mp_t public_x, + const botan_mp_t public_y, + const char* curve_name); -BOTAN_DLL int botan_pubkey_load_ec(botan_pubkey_t* key, - const botan_mp_t x, - const botan_mp_t y, +BOTAN_DLL int botan_pubkey_load_ecdh(botan_pubkey_t* key, + const botan_mp_t public_x, + const botan_mp_t public_y, const char* curve_name); +BOTAN_DLL int botan_privkey_load_ecdh(botan_privkey_t* key, + const botan_mp_t scalar, + const char* curve_name); + /* * Public Key Encryption */ |