1#include "crypto_stream_salsa2012.h"
2#include "randombytes.h"
3
4size_t
5crypto_stream_salsa2012_keybytes(void)
6{
7    return crypto_stream_salsa2012_KEYBYTES;
8}
9
10size_t
11crypto_stream_salsa2012_noncebytes(void)
12{
13    return crypto_stream_salsa2012_NONCEBYTES;
14}
15
16size_t
17crypto_stream_salsa2012_messagebytes_max(void)
18{
19    return crypto_stream_salsa2012_MESSAGEBYTES_MAX;
20}
21
22void
23crypto_stream_salsa2012_keygen(unsigned char k[crypto_stream_salsa2012_KEYBYTES])
24{
25    randombytes_buf(k, crypto_stream_salsa2012_KEYBYTES);
26}
27