Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
usr
/
include
/
sodium
/
File Content:
crypto_box.h
#ifndef crypto_box_H #define crypto_box_H /* * THREAD SAFETY: crypto_box_keypair() is thread-safe, * provided that sodium_init() was called before. * * Other functions are always thread-safe. */ #include <stddef.h> #include "crypto_box_curve25519xsalsa20poly1305.h" #include "export.h" #ifdef __cplusplus # ifdef __GNUC__ # pragma GCC diagnostic ignored "-Wlong-long" # endif extern "C" { #endif #define crypto_box_SEEDBYTES crypto_box_curve25519xsalsa20poly1305_SEEDBYTES SODIUM_EXPORT size_t crypto_box_seedbytes(void); #define crypto_box_PUBLICKEYBYTES crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES SODIUM_EXPORT size_t crypto_box_publickeybytes(void); #define crypto_box_SECRETKEYBYTES crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES SODIUM_EXPORT size_t crypto_box_secretkeybytes(void); #define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES SODIUM_EXPORT size_t crypto_box_noncebytes(void); #define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES SODIUM_EXPORT size_t crypto_box_macbytes(void); #define crypto_box_MESSAGEBYTES_MAX crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX SODIUM_EXPORT size_t crypto_box_messagebytes_max(void); #define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305" SODIUM_EXPORT const char *crypto_box_primitive(void); SODIUM_EXPORT int crypto_box_seed_keypair(unsigned char *pk, unsigned char *sk, const unsigned char *seed) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_box_keypair(unsigned char *pk, unsigned char *sk) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_box_easy(unsigned char *c, const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); SODIUM_EXPORT int crypto_box_open_easy(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); SODIUM_EXPORT int crypto_box_detached(unsigned char *c, unsigned char *mac, const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); SODIUM_EXPORT int crypto_box_open_detached(unsigned char *m, const unsigned char *c, const unsigned char *mac, unsigned long long clen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); /* -- Precomputation interface -- */ #define crypto_box_BEFORENMBYTES crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES SODIUM_EXPORT size_t crypto_box_beforenmbytes(void); SODIUM_EXPORT int crypto_box_beforenm(unsigned char *k, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); SODIUM_EXPORT int crypto_box_easy_afternm(unsigned char *c, const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *k) __attribute__ ((nonnull(1, 4, 5))); SODIUM_EXPORT int crypto_box_open_easy_afternm(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *k) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); SODIUM_EXPORT int crypto_box_detached_afternm(unsigned char *c, unsigned char *mac, const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *k) __attribute__ ((nonnull(1, 2, 5, 6))); SODIUM_EXPORT int crypto_box_open_detached_afternm(unsigned char *m, const unsigned char *c, const unsigned char *mac, unsigned long long clen, const unsigned char *n, const unsigned char *k) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); /* -- Ephemeral SK interface -- */ #define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES) SODIUM_EXPORT size_t crypto_box_sealbytes(void); SODIUM_EXPORT int crypto_box_seal(unsigned char *c, const unsigned char *m, unsigned long long mlen, const unsigned char *pk) __attribute__ ((nonnull(1, 4))); SODIUM_EXPORT int crypto_box_seal_open(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); /* -- NaCl compatibility interface ; Requires padding -- */ #define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES SODIUM_EXPORT size_t crypto_box_zerobytes(void); #define crypto_box_BOXZEROBYTES crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES SODIUM_EXPORT size_t crypto_box_boxzerobytes(void); SODIUM_EXPORT int crypto_box(unsigned char *c, const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); SODIUM_EXPORT int crypto_box_open(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *pk, const unsigned char *sk) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); SODIUM_EXPORT int crypto_box_afternm(unsigned char *c, const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *k) __attribute__ ((nonnull(1, 4, 5))); SODIUM_EXPORT int crypto_box_open_afternm(unsigned char *m, const unsigned char *c, unsigned long long clen, const unsigned char *n, const unsigned char *k) __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); #ifdef __cplusplus } #endif #endif
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
core.h
391 bytes
0644
crypto_aead_aes256gcm.h
7980 bytes
0644
crypto_aead_chacha20poly1305.h
8782 bytes
0644
crypto_aead_xchacha20poly1305.h
4848 bytes
0644
crypto_auth.h
1143 bytes
0644
crypto_auth_hmacsha256.h
2136 bytes
0644
crypto_auth_hmacsha512.h
2123 bytes
0644
crypto_auth_hmacsha512256.h
2133 bytes
0644
crypto_box.h
6838 bytes
0644
crypto_box_curve25519xchacha20poly1305.h
7957 bytes
0644
crypto_box_curve25519xsalsa20poly1305.h
4697 bytes
0644
crypto_core_ed25519.h
2898 bytes
0644
crypto_core_hchacha20.h
816 bytes
0644
crypto_core_hsalsa20.h
804 bytes
0644
crypto_core_ristretto255.h
3140 bytes
0644
crypto_core_salsa20.h
792 bytes
0644
crypto_core_salsa2012.h
816 bytes
0644
crypto_core_salsa208.h
968 bytes
0644
crypto_generichash.h
2495 bytes
0644
crypto_generichash_blake2b.h
3963 bytes
0644
crypto_hash.h
901 bytes
0644
crypto_hash_sha256.h
1492 bytes
0644
crypto_hash_sha512.h
1496 bytes
0644
crypto_kdf.h
1308 bytes
0644
crypto_kdf_blake2b.h
1071 bytes
0644
crypto_kx.h
2201 bytes
0644
crypto_onetimeauth.h
1912 bytes
0644
crypto_onetimeauth_poly1305.h
2198 bytes
0644
crypto_pwhash.h
4966 bytes
0644
crypto_pwhash_argon2i.h
3919 bytes
0644
crypto_pwhash_argon2id.h
3981 bytes
0644
crypto_pwhash_scryptsalsa208sha256.h
4688 bytes
0644
crypto_scalarmult.h
1184 bytes
0644
crypto_scalarmult_curve25519.h
1098 bytes
0644
crypto_scalarmult_ed25519.h
1406 bytes
0644
crypto_scalarmult_ristretto255.h
1119 bytes
0644
crypto_secretbox.h
3316 bytes
0644
crypto_secretbox_xchacha20poly1305.h
2853 bytes
0644
crypto_secretbox_xsalsa20poly1305.h
2419 bytes
0644
crypto_secretstream_xchacha20poly1305.h
3832 bytes
0644
crypto_shorthash.h
960 bytes
0644
crypto_shorthash_siphash24.h
1236 bytes
0644
crypto_sign.h
3353 bytes
0644
crypto_sign_ed25519.h
4341 bytes
0644
crypto_sign_edwards25519sha512batch.h
2053 bytes
0644
crypto_stream.h
1606 bytes
0644
crypto_stream_chacha20.h
3672 bytes
0644
crypto_stream_salsa20.h
1836 bytes
0644
crypto_stream_salsa2012.h
1532 bytes
0644
crypto_stream_salsa208.h
1731 bytes
0644
crypto_stream_xchacha20.h
1875 bytes
0644
crypto_stream_xsalsa20.h
1856 bytes
0644
crypto_verify_16.h
419 bytes
0644
crypto_verify_32.h
419 bytes
0644
crypto_verify_64.h
419 bytes
0644
export.h
1347 bytes
0644
randombytes.h
1847 bytes
0644
randombytes_internal_random.h
427 bytes
0644
randombytes_sysrandom.h
282 bytes
0644
runtime.h
889 bytes
0644
utils.h
6149 bytes
0644
version.h
509 bytes
0644
N4ST4R_ID | Naxtarrr