1 #include "crypto_stream_salsa208.h"
2 #include "randombytes.h"
3 
4 size_t
crypto_stream_salsa208_keybytes(void)5 crypto_stream_salsa208_keybytes(void)
6 {
7     return crypto_stream_salsa208_KEYBYTES;
8 }
9 
10 size_t
crypto_stream_salsa208_noncebytes(void)11 crypto_stream_salsa208_noncebytes(void)
12 {
13     return crypto_stream_salsa208_NONCEBYTES;
14 }
15 
16 size_t
crypto_stream_salsa208_messagebytes_max(void)17 crypto_stream_salsa208_messagebytes_max(void)
18 {
19     return crypto_stream_salsa208_MESSAGEBYTES_MAX;
20 }
21 
22 void
crypto_stream_salsa208_keygen(unsigned char k[crypto_stream_salsa208_KEYBYTES])23 crypto_stream_salsa208_keygen(unsigned char k[crypto_stream_salsa208_KEYBYTES])
24 {
25     randombytes_buf(k, crypto_stream_salsa208_KEYBYTES);
26 }
27