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