/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | pwhash_argon2id.c | 26 COMPILER_ASSERT(crypto_pwhash_argon2id_BYTES_MIN >= ARGON2_MIN_OUTLEN); in crypto_pwhash_argon2id_bytes_min() 33 COMPILER_ASSERT(crypto_pwhash_argon2id_BYTES_MAX <= ARGON2_MAX_OUTLEN); in crypto_pwhash_argon2id_bytes_max() 40 COMPILER_ASSERT(crypto_pwhash_argon2id_PASSWD_MIN >= ARGON2_MIN_PWD_LENGTH); in crypto_pwhash_argon2id_passwd_min() 47 COMPILER_ASSERT(crypto_pwhash_argon2id_PASSWD_MAX <= ARGON2_MAX_PWD_LENGTH); in crypto_pwhash_argon2id_passwd_max() 54 COMPILER_ASSERT(crypto_pwhash_argon2id_SALTBYTES >= ARGON2_MIN_SALT_LENGTH); in crypto_pwhash_argon2id_saltbytes() 55 COMPILER_ASSERT(crypto_pwhash_argon2id_SALTBYTES <= ARGON2_MAX_SALT_LENGTH); in crypto_pwhash_argon2id_saltbytes() 74 COMPILER_ASSERT(crypto_pwhash_argon2id_OPSLIMIT_MIN >= ARGON2_MIN_TIME); in crypto_pwhash_argon2id_opslimit_min() 81 COMPILER_ASSERT(crypto_pwhash_argon2id_OPSLIMIT_MAX <= ARGON2_MAX_TIME); in crypto_pwhash_argon2id_opslimit_max() 88 COMPILER_ASSERT((crypto_pwhash_argon2id_MEMLIMIT_MIN / 1024U) >= ARGON2_MIN_MEMORY); in crypto_pwhash_argon2id_memlimit_min() 95 COMPILER_ASSERT((crypto_pwhash_argon2id_MEMLIMIT_MAX / 1024U) <= ARGON2_MAX_MEMORY); in crypto_pwhash_argon2id_memlimit_max()
|
H A D | pwhash_argon2i.c | 30 COMPILER_ASSERT(crypto_pwhash_argon2i_BYTES_MIN >= ARGON2_MIN_OUTLEN); in crypto_pwhash_argon2i_bytes_min() 37 COMPILER_ASSERT(crypto_pwhash_argon2i_BYTES_MAX <= ARGON2_MAX_OUTLEN); in crypto_pwhash_argon2i_bytes_max() 44 COMPILER_ASSERT(crypto_pwhash_argon2i_PASSWD_MIN >= ARGON2_MIN_PWD_LENGTH); in crypto_pwhash_argon2i_passwd_min() 51 COMPILER_ASSERT(crypto_pwhash_argon2i_PASSWD_MAX <= ARGON2_MAX_PWD_LENGTH); in crypto_pwhash_argon2i_passwd_max() 58 COMPILER_ASSERT(crypto_pwhash_argon2i_SALTBYTES >= ARGON2_MIN_SALT_LENGTH); in crypto_pwhash_argon2i_saltbytes() 59 COMPILER_ASSERT(crypto_pwhash_argon2i_SALTBYTES <= ARGON2_MAX_SALT_LENGTH); in crypto_pwhash_argon2i_saltbytes() 78 COMPILER_ASSERT(crypto_pwhash_argon2i_OPSLIMIT_MIN >= ARGON2_MIN_TIME); in crypto_pwhash_argon2i_opslimit_min() 85 COMPILER_ASSERT(crypto_pwhash_argon2i_OPSLIMIT_MAX <= ARGON2_MAX_TIME); in crypto_pwhash_argon2i_opslimit_max() 92 COMPILER_ASSERT((crypto_pwhash_argon2i_MEMLIMIT_MIN / 1024U) >= ARGON2_MIN_MEMORY); in crypto_pwhash_argon2i_memlimit_min() 99 COMPILER_ASSERT((crypto_pwhash_argon2i_MEMLIMIT_MAX / 1024U) <= ARGON2_MAX_MEMORY); in crypto_pwhash_argon2i_memlimit_max()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_kx/ |
H A D | crypto_kx.c | 26 COMPILER_ASSERT(crypto_kx_SECRETKEYBYTES == crypto_scalarmult_SCALARBYTES); in crypto_kx_keypair() 27 COMPILER_ASSERT(crypto_kx_PUBLICKEYBYTES == crypto_scalarmult_BYTES); in crypto_kx_keypair() 57 COMPILER_ASSERT(sizeof keys <= crypto_generichash_BYTES_MAX); in crypto_kx_client_session_keys() 98 COMPILER_ASSERT(sizeof keys <= crypto_generichash_BYTES_MAX); in crypto_kx_server_session_keys()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/xchacha20/ |
H A D | stream_xchacha20.c | 35 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES <= sizeof k2); in crypto_stream_xchacha20() 36 COMPILER_ASSERT(crypto_stream_chacha20_NONCEBYTES == in crypto_stream_xchacha20()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/ |
H A D | secretstream_xchacha20poly1305.c | 48 COMPILER_ASSERT(crypto_secretstream_xchacha20poly1305_HEADERBYTES == in crypto_secretstream_xchacha20poly1305_init_push() 51 COMPILER_ASSERT(crypto_secretstream_xchacha20poly1305_HEADERBYTES == in crypto_secretstream_xchacha20poly1305_init_push() 53 COMPILER_ASSERT(sizeof state->nonce == in crypto_secretstream_xchacha20poly1305_init_push() 159 COMPILER_ASSERT(crypto_onetimeauth_poly1305_BYTES >= in crypto_secretstream_xchacha20poly1305_push()
|
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/salsa20/ |
H A D | randombytes_salsa20_random.c | 490 COMPILER_ASSERT(sizeof stream.nonce == crypto_stream_salsa20_NONCEBYTES); in randombytes_salsa20_random_buf() 521 COMPILER_ASSERT(sizeof stream.rnd32 >= (sizeof stream.key) + (sizeof val)); in randombytes_salsa20_random() 522 COMPILER_ASSERT(((sizeof stream.rnd32) - (sizeof stream.key)) in randombytes_salsa20_random() 526 COMPILER_ASSERT(sizeof stream.nonce == crypto_stream_salsa20_NONCEBYTES); in randombytes_salsa20_random()
|
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/ |
H A D | randombytes.c | 175 COMPILER_ASSERT(randombytes_SEEDBYTES == crypto_stream_chacha20_ietf_KEYBYTES); in randombytes_buf_deterministic() 177 COMPILER_ASSERT(randombytes_BYTES_MAX <= 0x4000000000ULL); in randombytes_buf_deterministic()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_secretbox/ |
H A D | crypto_secretbox_easy.c | 38 COMPILER_ASSERT(64U >= crypto_secretbox_ZEROBYTES); in crypto_secretbox_detached() 49 COMPILER_ASSERT(crypto_secretbox_ZEROBYTES >= in crypto_secretbox_detached()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_secretbox/xchacha20poly1305/ |
H A D | secretbox_xchacha20poly1305.c | 42 COMPILER_ASSERT(64U >= crypto_secretbox_xchacha20poly1305_ZEROBYTES); in crypto_secretbox_xchacha20poly1305_detached() 53 COMPILER_ASSERT(crypto_secretbox_xchacha20poly1305_ZEROBYTES >= in crypto_secretbox_xchacha20poly1305_detached()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/ |
H A D | chacha20_dolbeau-avx2.c | 98 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES == 256 / 8); in stream_ref() 117 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES == 256 / 8); in stream_ietf_ref()
|
H A D | chacha20_dolbeau-ssse3.c | 92 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES == 256 / 8); in stream_ref() 111 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES == 256 / 8); in stream_ietf_ref()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 228 COMPILER_ASSERT( in crypto_pwhash_scryptsalsa208sha256_str() 231 COMPILER_ASSERT( in crypto_pwhash_scryptsalsa208sha256_str()
|
H A D | pbkdf2-sha256.c | 60 COMPILER_ASSERT(crypto_pwhash_scryptsalsa208sha256_BYTES_MAX in PBKDF2_SHA256()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_box/ |
H A D | crypto_box_seal.c | 58 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES); in crypto_box_seal_open()
|
H A D | crypto_box_easy.c | 29 COMPILER_ASSERT(crypto_box_BEFORENMBYTES >= crypto_secretbox_KEYBYTES); in crypto_box_detached()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/ |
H A D | box_seal_curve25519xchacha20poly1305.c | 66 COMPILER_ASSERT(crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES < in crypto_box_curve25519xchacha20poly1305_seal_open()
|
H A D | box_curve25519xchacha20poly1305.c | 71 COMPILER_ASSERT(crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES >= in crypto_box_curve25519xchacha20poly1305_detached()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/ |
H A D | aead_chacha20poly1305.c | 200 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_decrypt_detached() 284 COMPILER_ASSERT(sizeof computed_mac == 16U); in crypto_aead_chacha20poly1305_ietf_decrypt_detached()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/ |
H A D | poly1305_donna.c | 76 COMPILER_ASSERT(sizeof(crypto_onetimeauth_poly1305_state) >= in crypto_onetimeauth_poly1305_donna_init()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/ |
H A D | salsa20_xmm6int-sse2.c | 81 COMPILER_ASSERT(crypto_stream_salsa20_KEYBYTES == 256 / 8); in stream_sse2()
|
H A D | salsa20_xmm6int-avx2.c | 90 COMPILER_ASSERT(crypto_stream_salsa20_KEYBYTES == 256 / 8); in stream_avx2()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_generichash/blake2b/ref/ |
H A D | blake2b-ref.c | 112 COMPILER_ASSERT(sizeof *P == 64); in blake2b_init_param() 314 COMPILER_ASSERT(sizeof buffer == 64U); in blake2b_final()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/chacha20/ref/ |
H A D | chacha20_ref.c | 235 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES == 256 / 8); in stream_ref() 254 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES == 256 / 8); in stream_ietf_ref()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/ |
H A D | x25519_ref10.c | 38 COMPILER_ASSERT(12 == sizeof blacklist / sizeof blacklist[0]); in has_small_order()
|
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/ |
H A D | randombytes_sysrandom.c | 347 COMPILER_ASSERT(randombytes_BYTES_MAX <= 0xffffffffUL); in randombytes_sysrandom_buf()
|