ソースを参照
Remove stray zerobytes
master
Joost Rijneveld
7年前
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 307BC77F47D58EE2
-
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 |