summaryrefslogtreecommitdiff
path: root/nacl/crypto_stream/aes128ctr/core2/xor.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/crypto_stream/aes128ctr/core2/xor.c')
-rw-r--r--nacl/crypto_stream/aes128ctr/core2/xor.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/nacl/crypto_stream/aes128ctr/core2/xor.c b/nacl/crypto_stream/aes128ctr/core2/xor.c
new file mode 100644
index 00000000..825088cc
--- /dev/null
+++ b/nacl/crypto_stream/aes128ctr/core2/xor.c
@@ -0,0 +1,15 @@
1#include "crypto_stream.h"
2
3int crypto_stream_xor(
4 unsigned char *out,
5 const unsigned char *in,
6 unsigned long long inlen,
7 const unsigned char *n,
8 const unsigned char *k
9 )
10{
11 unsigned char d[crypto_stream_BEFORENMBYTES];
12 crypto_stream_beforenm(d, k);
13 crypto_stream_xor_afternm(out, in, inlen, n, d);
14 return 0;
15}