summaryrefslogtreecommitdiff
path: root/src/libsodium/crypto_stream/salsa20/stream_salsa20_api.c
blob: 3bc0580107391ab5039f6871b18e74386bac1e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "crypto_stream_salsa20.h"

size_t
crypto_stream_salsa20_keybytes(void) {
    return crypto_stream_salsa20_KEYBYTES;
}

size_t
crypto_stream_salsa20_noncebytes(void) {
    return crypto_stream_salsa20_NONCEBYTES;
}

int
crypto_stream_salsa20_xor(unsigned char *c, const unsigned char *m,
                          unsigned long long mlen, const unsigned char *n,
                          const unsigned char *k)
{
    return crypto_stream_salsa20_xor_ic(c, m, mlen, n, 0U, k);
}