summaryrefslogtreecommitdiff
path: root/nacl/curvecp/byte_zero.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-02 09:53:34 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-02 09:53:34 -0400
commite2967396ac73cb7410787886cdaf072a184ffc49 (patch)
tree527a74d25a4a0705fc641994fd35bfab22662034 /nacl/curvecp/byte_zero.c
parent8928c817df345f29aa0b194743595aa11bd6a8ba (diff)
Added NaCl crypto library.
Diffstat (limited to 'nacl/curvecp/byte_zero.c')
-rw-r--r--nacl/curvecp/byte_zero.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nacl/curvecp/byte_zero.c b/nacl/curvecp/byte_zero.c
new file mode 100644
index 00000000..bdc1f799
--- /dev/null
+++ b/nacl/curvecp/byte_zero.c
@@ -0,0 +1,7 @@
1#include "byte.h"
2
3void byte_zero(void *yv,long long ylen)
4{
5 char *y = yv;
6 while (ylen > 0) { *y++ = 0; --ylen; }
7}