xmss-KAT-generator/zerobytes.c

15 lines
255 B
C

/*
This code was taken from the SPHINCS reference implementation.
Public domain.
*/
#include "zerobytes.h"
unsigned char *zerobytes(unsigned char *r,unsigned long long n)
{
volatile unsigned char *p=r;
while (n--)
*(p++) = 0;
return r;
}