xmss-KAT-generator/zerobytes.c

15 rindas
250 B
C

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