瀏覽代碼

Remove stray zerobytes

master
Joost Rijneveld 7 年之前
父節點
當前提交
1076b37321
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 307BC77F47D58EE2
共有 2 個檔案被更改,包括 0 行新增20 行删除
  1. +0
    -14
      zerobytes.c
  2. +0
    -6
      zerobytes.h

+ 0
- 14
zerobytes.c 查看文件

@@ -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;
}

+ 0
- 6
zerobytes.h 查看文件

@@ -1,6 +0,0 @@
#ifndef ZEROBYTES_H
#define ZEROBYTES_H

unsigned char *zerobytes(unsigned char *r,unsigned long long n);

#endif

Loading…
取消
儲存