diff options
author | Krzysztof Kwiatkowski <[email protected]> | 2017-06-29 23:20:08 +0100 |
---|---|---|
committer | Krzysztof Kwiatkowski <[email protected]> | 2017-06-29 23:20:56 +0100 |
commit | d11a550415f1c359cd483c1992ea04b911fbdc2c (patch) | |
tree | 86839715144895ab0834a493270a8e6fa6b32ea0 /src/lib/ffi/ffi.h | |
parent | 62c94693cb1cf5ddc5e8e43a787561e7d8351258 (diff) |
FFI: Add interface for key wrapping with RFC 3394
Diffstat (limited to 'src/lib/ffi/ffi.h')
-rw-r--r-- | src/lib/ffi/ffi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h index a179e5fa4..656b020c1 100644 --- a/src/lib/ffi/ffi.h +++ b/src/lib/ffi/ffi.h @@ -1099,6 +1099,17 @@ BOTAN_DLL int botan_tls_channel_close(botan_tls_channel_t chan); BOTAN_DLL int botan_tls_channel_destroy(botan_tls_channel_t chan); +/** + * Key wrapping as per RFC 3394 + */ +BOTAN_DLL int botan_key_wrap3394(uint8_t key[], size_t key_len, + uint8_t kek[], size_t kek_len, + uint8_t wrapped_key[], size_t *wrapped_key_len); + +BOTAN_DLL int botan_key_unwrap3394( uint8_t wrapped_key[], size_t wrapped_key_len, + uint8_t kek[], size_t kek_len, + uint8_t key[], size_t *key_len); + #endif #ifdef __cplusplus } |