Sha256: 66a3f7393bb03097ab1b1e49fa9b3e1979d5c5179e0b03abb26858c496382862

Contents?: true

Size: 925 Bytes

Versions: 12

Compression:

Stored size: 925 Bytes

Contents

#ifndef randombytes_salsa20_random_H
#define randombytes_salsa20_random_H

/*
 * THREAD SAFETY: randombytes_salsa20_random*() functions are
 * fork()-safe but not thread-safe.
 * Always wrap them in a mutex if you need thread safety.
 */

#include <stddef.h>
#include <stdint.h>

#include "export.h"

#ifdef __cplusplus
extern "C" {
#endif

SODIUM_EXPORT
extern struct randombytes_implementation randombytes_salsa20_implementation;

SODIUM_EXPORT
const char *randombytes_salsa20_implementation_name(void);

SODIUM_EXPORT
uint32_t    randombytes_salsa20_random(void);

SODIUM_EXPORT
void        randombytes_salsa20_random_stir(void);

SODIUM_EXPORT
uint32_t    randombytes_salsa20_random_uniform(const uint32_t upper_bound);

SODIUM_EXPORT
void        randombytes_salsa20_random_buf(void * const buf, const size_t size);

SODIUM_EXPORT
int         randombytes_salsa20_random_close(void);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.6.0 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.5.0.1 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.5.0.1.pre vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.5.0 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.4.5 vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h
rbnacl-libsodium-0.4.5a vendor/libsodium/src/libsodium/include/sodium/randombytes_salsa20_random.h