aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi_mac.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-11 07:31:41 -0400
committerJack Lloyd <[email protected]>2018-08-11 07:31:41 -0400
commit2c10ec625d799d513a56ec93f8117999143be244 (patch)
tree2c1714e61cb7cb612172125d989b7576a587a70d /src/lib/ffi/ffi_mac.cpp
parent4bae26bc1a884d534dc482ba3cd4cbeaa50f4963 (diff)
Add botan_cipher_get_keyspec
botan_cipher_query_keylen doesn't return the modulus. Renames (recently added/unreleased) botan_{block_cipher,mac}_query_keylen to x_get_keyspec so the names are consistent.
Diffstat (limited to 'src/lib/ffi/ffi_mac.cpp')
-rw-r--r--src/lib/ffi/ffi_mac.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ffi/ffi_mac.cpp b/src/lib/ffi/ffi_mac.cpp
index 4fbe171ec..b1b021720 100644
--- a/src/lib/ffi/ffi_mac.cpp
+++ b/src/lib/ffi/ffi_mac.cpp
@@ -67,10 +67,10 @@ int botan_mac_name(botan_mac_t mac, char* name, size_t* name_len)
return write_str_output(name, name_len, m.name()); });
}
-int botan_mac_query_keylen(botan_mac_t mac,
- size_t* out_minimum_keylength,
- size_t* out_maximum_keylength,
- size_t* out_keylength_modulo)
+int botan_mac_get_keyspec(botan_mac_t mac,
+ size_t* out_minimum_keylength,
+ size_t* out_maximum_keylength,
+ size_t* out_keylength_modulo)
{
return BOTAN_FFI_DO(Botan::MessageAuthenticationCode, mac, m, {
if(out_minimum_keylength)