浏览代码
Remove stray zerobytes
master
Joost Rijneveld
7 年前
找不到此签名对应的密钥
GPG 密钥 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 |