35 #define noise_new(type) ((type *)noise_new_object(sizeof(type)))
45 (
int fingerprint_type,
char *buffer,
size_t len,
46 const uint8_t *public_key,
size_t public_key_len);
void noise_clean(void *data, size_t size)
Cleans a block of memory to destroy its contents.
size_t size
Total size of the structure.
int noise_is_zero(const void *data, size_t size)
Determine if a block of memory consists of all zero bytes.
int noise_format_fingerprint(int fingerprint_type, char *buffer, size_t len, const uint8_t *public_key, size_t public_key_len)
Formats the fingerprint for a raw public key value.
void * noise_new_object(size_t size)
Allocates memory from the system for an object.
int noise_init(void)
Initializes the Noise-c library.
void noise_free(void *ptr, size_t size)
Destroys the contents of a block of memory and free it.
int noise_is_equal(const void *s1, const void *s2, size_t size)
Determine if two blocks of memory are equal in constant time.