Noise-C
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Functions
util.c File Reference

Utility function implementation. More...

#include "internal.h"
#include "crypto/sha2/sha256.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

void noise_clean (void *data, size_t size)
 Cleans a block of memory to destroy its contents. More...
 
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. More...
 
void noise_free (void *ptr, size_t size)
 Destroys the contents of a block of memory and free it. More...
 
int noise_init (void)
 Initializes the Noise-c library. More...
 
void noise_init_helper (void)
 
int noise_is_equal (const void *s1, const void *s2, size_t size)
 Determine if two blocks of memory are equal in constant time. More...
 
int noise_is_zero (const void *data, size_t size)
 Determine if a block of memory consists of all zero bytes. More...
 
void * noise_new_object (size_t size)
 Allocates memory from the system for an object. More...
 

Detailed Description

Utility function implementation.

Definition in file util.c.

Function Documentation

void noise_init_helper ( void  )

Definition at line 54 of file util.c.