瀏覽代碼
Remove stray zerobytes
master
Joost Rijneveld
7 年之前
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 307BC77F47D58EE2
共有
2 個文件被更改,包括
0 次插入 和
20 次删除
-
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 |