diff options
Diffstat (limited to 'nacl/curvecp/byte_zero.c')
-rw-r--r-- | nacl/curvecp/byte_zero.c | 7 |
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 | |||
3 | void byte_zero(void *yv,long long ylen) | ||
4 | { | ||
5 | char *y = yv; | ||
6 | while (ylen > 0) { *y++ = 0; --ylen; } | ||
7 | } | ||