Botan 3.6.1
Crypto and TLS for C&
|
#include <botan/ffi.h>
#include <botan/internal/ffi_mp.h>
#include <botan/internal/ffi_util.h>
#include <memory>
Go to the source code of this file.
Functions | |
int | botan_fpe_decrypt (botan_fpe_t fpe, botan_mp_t x, const uint8_t tweak[], size_t tweak_len) |
int | botan_fpe_destroy (botan_fpe_t fpe) |
int | botan_fpe_encrypt (botan_fpe_t fpe, botan_mp_t x, const uint8_t tweak[], size_t tweak_len) |
int | botan_fpe_fe1_init (botan_fpe_t *fpe, botan_mp_t n, const uint8_t key[], size_t key_len, size_t rounds, uint32_t flags) |
int botan_fpe_decrypt | ( | botan_fpe_t | fpe, |
botan_mp_t | x, | ||
const uint8_t | tweak[], | ||
size_t | tweak_len ) |
Definition at line 78 of file ffi_fpe.cpp.
References BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_FFI_SUCCESS, BOTAN_UNUSED, Botan_FFI::ffi_guard_thunk(), and Botan_FFI::safe_get().
int botan_fpe_destroy | ( | botan_fpe_t | fpe | ) |
Definition at line 56 of file ffi_fpe.cpp.
References BOTAN_FFI_CHECKED_DELETE, BOTAN_FFI_ERROR_NOT_IMPLEMENTED, and BOTAN_UNUSED.
int botan_fpe_encrypt | ( | botan_fpe_t | fpe, |
botan_mp_t | x, | ||
const uint8_t | tweak[], | ||
size_t | tweak_len ) |
Definition at line 65 of file ffi_fpe.cpp.
References BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_FFI_SUCCESS, BOTAN_UNUSED, Botan_FFI::ffi_guard_thunk(), and Botan_FFI::safe_get().
int botan_fpe_fe1_init | ( | botan_fpe_t * | fpe, |
botan_mp_t | n, | ||
const uint8_t | key[], | ||
size_t | key_len, | ||
size_t | rounds, | ||
uint32_t | flags ) |
Definition at line 27 of file ffi_fpe.cpp.
References BOTAN_FFI_ERROR_BAD_FLAG, BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_FFI_ERROR_NULL_POINTER, BOTAN_FFI_SUCCESS, BOTAN_FPE_FLAG_FE1_COMPAT_MODE, BOTAN_UNUSED, Botan_FFI::ffi_guard_thunk(), and Botan_FFI::safe_get().