diff options
author | Krzysztof Kwiatkowski <[email protected]> | 2017-07-30 23:46:52 +0100 |
---|---|---|
committer | Krzysztof Kwiatkowski <[email protected]> | 2017-07-30 23:46:52 +0100 |
commit | 240797c3558407283c16e6111e6a4b0dbca40e2a (patch) | |
tree | ce60169a566eb070b2f6f315a1336434a35ad6c4 | |
parent | d11a550415f1c359cd483c1992ea04b911fbdc2c (diff) |
Move declarations above TLS block
-rw-r--r-- | src/lib/ffi/ffi.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h index 656b020c1..af9c00d91 100644 --- a/src/lib/ffi/ffi.h +++ b/src/lib/ffi/ffi.h @@ -1040,6 +1040,17 @@ enum botan_x509_cert_key_constraints { BOTAN_DLL int botan_x509_cert_allowed_usage(botan_x509_cert_t cert, unsigned int key_usage); +/** + * 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); + /* * TLS (WIP) */ @@ -1099,17 +1110,6 @@ 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 } |