Sha256: 9f0c214c2a2e860d55ca9556bdc8a9c4f09750dfcd72965a2210d5b63433ad01
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
#include "core.h" #include "crypto_generichash.h" #include "crypto_onetimeauth.h" #include "crypto_pwhash_argon2i.h" #include "crypto_scalarmult.h" #include "crypto_stream_chacha20.h" #include "randombytes.h" #include "runtime.h" #include "utils.h" #if !defined(_MSC_VER) && 0 # warning This is unstable, untested, development code. # warning It might not compile. It might not work as expected. # warning It might be totally insecure. # warning Do not use this in production. # warning Use releases available at https://download.libsodium.org/libsodium/releases/ instead. # warning Alternatively, use the "stable" branch in the git repository. #endif static int initialized; int sodium_init(void) { if (initialized != 0) { return 1; } _sodium_runtime_get_cpu_features(); randombytes_stir(); _sodium_alloc_init(); _crypto_pwhash_argon2i_pick_best_implementation(); _crypto_generichash_blake2b_pick_best_implementation(); _crypto_onetimeauth_poly1305_pick_best_implementation(); _crypto_scalarmult_curve25519_pick_best_implementation(); _crypto_stream_chacha20_pick_best_implementation(); initialized = 1; return 0; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbnacl-libsodium-1.0.10 | vendor/libsodium/src/libsodium/sodium/core.c |
rbnacl-libsodium-1.0.9 | vendor/libsodium/src/libsodium/sodium/core.c |