|
Botan 3.9.0
Crypto and TLS for C&
|
#include <botan/ffi.h>#include <botan/internal/ffi_util.h>Go to the source code of this file.
Functions | |
| 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) |
| 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) |
| int | botan_nist_kw_dec (const char *cipher_algo, int padded, 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) |
| int | botan_nist_kw_enc (const char *cipher_algo, int padded, 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) |
| 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 ) |
Definition at line 97 of file ffi_keywrap.cpp.
References botan_nist_kw_dec().
| 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 ) |
Key wrapping as per RFC 3394
Definition at line 86 of file ffi_keywrap.cpp.
References botan_nist_kw_enc().
| int botan_nist_kw_dec | ( | const char * | cipher_algo, |
| int | padded, | ||
| 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 ) |
Definition at line 53 of file ffi_keywrap.cpp.
References BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_UNUSED, Botan::BlockCipher::create_or_throw(), Botan_FFI::ffi_guard_thunk(), Botan::nist_key_unwrap(), Botan::nist_key_unwrap_padded(), and Botan_FFI::write_vec_output().
Referenced by botan_key_unwrap3394().
| int botan_nist_kw_enc | ( | const char * | cipher_algo, |
| int | padded, | ||
| 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 ) |
Definition at line 21 of file ffi_keywrap.cpp.
References BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_UNUSED, Botan::BlockCipher::create_or_throw(), Botan_FFI::ffi_guard_thunk(), Botan::nist_key_wrap(), Botan::nist_key_wrap_padded(), and Botan_FFI::write_vec_output().
Referenced by botan_key_wrap3394().