Sha256: 89aadea9b9aa0a57a8ca51cac94fd6556bcb36f43289e2b56b48b465279dd5ac

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

#include "crypto_stream_salsa208.h"
#include "randombytes.h"

size_t
crypto_stream_salsa208_keybytes(void)
{
    return crypto_stream_salsa208_KEYBYTES;
}

size_t
crypto_stream_salsa208_noncebytes(void)
{
    return crypto_stream_salsa208_NONCEBYTES;
}

void
crypto_stream_salsa208_keygen(unsigned char k[crypto_stream_salsa208_KEYBYTES])
{
    randombytes_buf(k, crypto_stream_salsa208_KEYBYTES);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.13 vendor/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208.c