]> iEval git - authen-passphrase-scrypt.git/blame - scrypt-1.2.1/libcperciva/util/insecure_memzero.c
Initial commit
[authen-passphrase-scrypt.git] / scrypt-1.2.1 / libcperciva / util / insecure_memzero.c
CommitLineData
0c1f3509
MG
1#include <stddef.h>
2#include <stdint.h>
3
4#include "insecure_memzero.h"
5
6/* Function which does the zeroing. */
7static void
8insecure_memzero_func(volatile void * buf, size_t len)
9{
10 volatile uint8_t * _buf = buf;
11 size_t i;
12
13 for (i = 0; i < len; i++)
14 _buf[i] = 0;
15}
16
17/* Pointer to memory-zeroing function. */
18void (* volatile insecure_memzero_ptr)(volatile void *, size_t) =
19 insecure_memzero_func;
This page took 0.027188 seconds and 4 git commands to generate.