Joost Rijneveld
vor 7 Jahren
Ursprung
Commit
1076b37321
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 307BC77F47D58EE2
2 geänderte Dateien mit
0 neuen und
20 gelöschten Zeilen
-
zerobytes.c
-
zerobytes.h
|
|
@@ -1,14 +0,0 @@ |
|
|
|
/* |
|
|
|
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; |
|
|
|
} |
|
|
@@ -1,6 +0,0 @@ |
|
|
|
#ifndef ZEROBYTES_H |
|
|
|
#define ZEROBYTES_H |
|
|
|
|
|
|
|
unsigned char *zerobytes(unsigned char *r,unsigned long long n); |
|
|
|
|
|
|
|
#endif |