Botan 3.6.1
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_hotp_check (botan_hotp_t hotp, uint64_t *next_hotp_counter, uint32_t hotp_code, uint64_t hotp_counter, size_t resync_range) |
int | botan_hotp_destroy (botan_hotp_t hotp) |
int | botan_hotp_generate (botan_hotp_t hotp, uint32_t *hotp_code, uint64_t hotp_counter) |
int | botan_hotp_init (botan_hotp_t *hotp, const uint8_t key[], size_t key_len, const char *hash_algo, size_t digits) |
int botan_hotp_check | ( | botan_hotp_t | hotp, |
uint64_t * | next_hotp_counter, | ||
uint32_t | hotp_code, | ||
uint64_t | hotp_counter, | ||
size_t | resync_range ) |
Verify a HOTP code
Definition at line 68 of file ffi_hotp.cpp.
References BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_FFI_INVALID_VERIFIER, BOTAN_FFI_SUCCESS, BOTAN_FFI_VISIT, and BOTAN_UNUSED.
int botan_hotp_destroy | ( | botan_hotp_t | hotp | ) |
Destroy a HOTP instance
Definition at line 45 of file ffi_hotp.cpp.
References BOTAN_FFI_CHECKED_DELETE, BOTAN_FFI_ERROR_NOT_IMPLEMENTED, and BOTAN_UNUSED.
int botan_hotp_generate | ( | botan_hotp_t | hotp, |
uint32_t * | hotp_code, | ||
uint64_t | hotp_counter ) |
Generate a HOTP code for the provided counter
Definition at line 54 of file ffi_hotp.cpp.
References BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_FFI_ERROR_NULL_POINTER, BOTAN_FFI_VISIT, and BOTAN_UNUSED.
int botan_hotp_init | ( | botan_hotp_t * | hotp, |
const uint8_t | key[], | ||
size_t | key_len, | ||
const char * | hash_algo, | ||
size_t | digits ) |
Initialize a HOTP instance
Definition at line 25 of file ffi_hotp.cpp.
References BOTAN_FFI_ERROR_NOT_IMPLEMENTED, BOTAN_FFI_ERROR_NULL_POINTER, BOTAN_FFI_SUCCESS, BOTAN_UNUSED, and Botan_FFI::ffi_guard_thunk().