Home
last modified time | relevance | path

Searched refs:COMPILER_ASSERT (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/
H A Dpwhash_argon2id.c26 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 Dpwhash_argon2i.c30 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 Dcrypto_kx.c26 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 Dstream_xchacha20.c35 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 Dsecretstream_xchacha20poly1305.c48 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 Drandombytes_salsa20_random.c490 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 Drandombytes.c175 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 Dcrypto_secretbox_easy.c38 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 Dsecretbox_xchacha20poly1305.c42 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 Dchacha20_dolbeau-avx2.c98 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 Dchacha20_dolbeau-ssse3.c92 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 Dpwhash_scryptsalsa208sha256.c228 COMPILER_ASSERT( in crypto_pwhash_scryptsalsa208sha256_str()
231 COMPILER_ASSERT( in crypto_pwhash_scryptsalsa208sha256_str()
H A Dpbkdf2-sha256.c60 COMPILER_ASSERT(crypto_pwhash_scryptsalsa208sha256_BYTES_MAX in PBKDF2_SHA256()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_box/
H A Dcrypto_box_seal.c58 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES); in crypto_box_seal_open()
H A Dcrypto_box_easy.c29 COMPILER_ASSERT(crypto_box_BEFORENMBYTES >= crypto_secretbox_KEYBYTES); in crypto_box_detached()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/
H A Dbox_seal_curve25519xchacha20poly1305.c66 COMPILER_ASSERT(crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES < in crypto_box_curve25519xchacha20poly1305_seal_open()
H A Dbox_curve25519xchacha20poly1305.c71 COMPILER_ASSERT(crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES >= in crypto_box_curve25519xchacha20poly1305_detached()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/
H A Daead_chacha20poly1305.c200 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 Dpoly1305_donna.c76 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 Dsalsa20_xmm6int-sse2.c81 COMPILER_ASSERT(crypto_stream_salsa20_KEYBYTES == 256 / 8); in stream_sse2()
H A Dsalsa20_xmm6int-avx2.c90 COMPILER_ASSERT(crypto_stream_salsa20_KEYBYTES == 256 / 8); in stream_avx2()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_generichash/blake2b/ref/
H A Dblake2b-ref.c112 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 Dchacha20_ref.c235 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 Dx25519_ref10.c38 COMPILER_ASSERT(12 == sizeof blacklist / sizeof blacklist[0]); in has_small_order()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c347 COMPILER_ASSERT(randombytes_BYTES_MAX <= 0xffffffffUL); in randombytes_sysrandom_buf()

12