Browse Source

Remove stray zerobytes

master
Joost Rijneveld 7 years ago
parent
commit
1076b37321
No known key found for this signature in database GPG Key ID: 307BC77F47D58EE2
2 changed files with 0 additions and 20 deletions
  1. +0
    -14
      zerobytes.c
  2. +0
    -6
      zerobytes.h

+ 0
- 14
zerobytes.c View File

@@ -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 View File

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

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

#endif

Loading…
Cancel
Save