blob: 825088ccc5dd2a33f4da8dcb48184e8423ee9413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "crypto_stream.h"
int crypto_stream_xor(
unsigned char *out,
const unsigned char *in,
unsigned long long inlen,
const unsigned char *n,
const unsigned char *k
)
{
unsigned char d[crypto_stream_BEFORENMBYTES];
crypto_stream_beforenm(d, k);
crypto_stream_xor_afternm(out, in, inlen, n, d);
return 0;
}
|