ASCON Suite
Macros | Functions
ascon-clean.c File Reference
#include <ascon/utility.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Macros

#define __STDC_WANT_LIB_EXT1__   1 /* Detect if the C library has memset_s */
 

Functions

void ascon_clean (void *buf, unsigned size)
 Cleans a buffer that contains sensitive material. More...
 

Macro Definition Documentation

◆ __STDC_WANT_LIB_EXT1__

#define __STDC_WANT_LIB_EXT1__   1 /* Detect if the C library has memset_s */

Definition at line 26 of file ascon-clean.c.

Function Documentation

◆ ascon_clean()

void ascon_clean ( void *  buf,
unsigned  size 
)

Cleans a buffer that contains sensitive material.

Parameters
bufPoints to the buffer to clear.
sizeSize of the buffer to clear in bytes.

Definition at line 38 of file ascon-clean.c.