aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi_keywrap.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-07-31 10:43:12 -0400
committerJack Lloyd <[email protected]>2017-07-31 10:43:12 -0400
commit685c8c36efc4b1ef58ce8b41bb3a67edd8067144 (patch)
treecd487ff97ac4bc60cc7d4df2df016b56a1b93ab4 /src/lib/ffi/ffi_keywrap.cpp
parent0ae811c61a029db82664ad1fd415182cdc9a9628 (diff)
Add test for FFI keywrap, and constify args
Diffstat (limited to 'src/lib/ffi/ffi_keywrap.cpp')
-rw-r--r--src/lib/ffi/ffi_keywrap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ffi/ffi_keywrap.cpp b/src/lib/ffi/ffi_keywrap.cpp
index d881140d6..22bb5280a 100644
--- a/src/lib/ffi/ffi_keywrap.cpp
+++ b/src/lib/ffi/ffi_keywrap.cpp
@@ -15,8 +15,8 @@ extern "C" {
using namespace Botan_FFI;
-int botan_key_wrap3394(uint8_t key[], size_t key_len,
- uint8_t kek[], size_t kek_len,
+int botan_key_wrap3394(const uint8_t key[], size_t key_len,
+ const uint8_t kek[], size_t kek_len,
uint8_t wrapped_key[], size_t* wrapped_key_len)
{
#if defined(BOTAN_HAS_RFC3394_KEYWRAP)
@@ -31,8 +31,8 @@ int botan_key_wrap3394(uint8_t key[], size_t key_len,
#endif
}
-int botan_key_unwrap3394(uint8_t wrapped_key[], size_t wrapped_key_len,
- uint8_t kek[], size_t kek_len,
+int botan_key_unwrap3394(const uint8_t wrapped_key[], size_t wrapped_key_len,
+ const uint8_t kek[], size_t kek_len,
uint8_t key[], size_t* key_len)
{
#if defined(BOTAN_HAS_RFC3394_KEYWRAP)