Home
last modified time | relevance | path

Searched refs:noncelen (Results 1 – 23 of 23) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/rands/
H A Ddrbg.c371 size_t noncelen = 0, entropylen = 0; in ossl_prov_drbg_instantiate() local
403 noncelen = drbg->parent_nonce(drbg->parent, NULL, drbg->strength, in ossl_prov_drbg_instantiate()
406 if (noncelen == 0) { in ossl_prov_drbg_instantiate()
410 nonce = OPENSSL_malloc(noncelen); in ossl_prov_drbg_instantiate()
415 if (noncelen != drbg->parent_nonce(drbg->parent, nonce, in ossl_prov_drbg_instantiate()
438 noncelen = prov_drbg_get_nonce(drbg, &nonce, drbg->min_noncelen, in ossl_prov_drbg_instantiate()
440 if (noncelen < drbg->min_noncelen in ossl_prov_drbg_instantiate()
441 || noncelen > drbg->max_noncelen) { in ossl_prov_drbg_instantiate()
465 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen, in ossl_prov_drbg_instantiate()
480 ossl_prov_cleanup_nonce(drbg->provctx, nonce, noncelen); in ossl_prov_drbg_instantiate()
[all …]
H A Ddrbg_local.h80 const unsigned char *nonce, size_t noncelen,
187 const unsigned char *nonce, size_t noncelen,
H A Ddrbg_ctr.c262 const unsigned char *nonce, size_t noncelen) in ctr_update() argument
289 if (!ctr_df(ctr, in1, in1len, nonce, noncelen, in2, in2len)) in ctr_update()
307 const unsigned char *nonce, size_t noncelen, in drbg_ctr_instantiate() argument
321 if (!ctr_update(drbg, entropy, entropylen, pers, perslen, nonce, noncelen)) in drbg_ctr_instantiate()
/freebsd/crypto/libecc/include/libecc/sig/
H A Dfuzzing_ecrdsa.h23 …sign_context *ctx, const u8 *input, u8 inputlen, u8 *sig, u8 siglen, const u8 *nonce, u8 noncelen);
H A Dfuzzing_ecgdsa.h23 …sign_context *ctx, const u8 *input, u8 inputlen, u8 *sig, u8 siglen, const u8 *nonce, u8 noncelen);
H A Dfuzzing_ecdsa.h23 …sign_context *ctx, const u8 *input, u8 inputlen, u8 *sig, u8 siglen, const u8 *nonce, u8 noncelen);
/freebsd/crypto/libecc/src/examples/sig/sdsa/
H A Dsdsa.h66 const u8 *nonce, u16 noncelen,
H A Dsdsa.c89 const u8 *nonce, u16 noncelen, in sdsa_sign() argument
150 ret = _os2ip(&k, nonce, noncelen); EG(ret, err); in sdsa_sign()
/freebsd/crypto/libecc/src/examples/sig/kcdsa/
H A Dkcdsa.h66 const u8 *nonce, u16 noncelen,
H A Dkcdsa.c130 const u8 *nonce, u16 noncelen, in kcdsa_sign() argument
209 ret = _os2ip(&k, nonce, noncelen); EG(ret, err); in kcdsa_sign()
/freebsd/crypto/libecc/src/examples/sig/gostr34_10_94/
H A Dgostr34_10_94.h66 const u8 *nonce, u16 noncelen,
H A Dgostr34_10_94.c87 const u8 *nonce, u16 noncelen, in gostr34_10_94_sign() argument
140 ret = _os2ip(&k, nonce, noncelen); EG(ret, err); in gostr34_10_94_sign()
/freebsd/crypto/libecc/src/sig/
H A Dfuzzing_ecgdsa.c41 …_sign_context *ctx, const u8 *input, u8 inputlen, u8 *sig, u8 siglen, const u8 *nonce, u8 noncelen) in ecgdsa_sign_raw() argument
141 MUST_HAVE((noncelen <= (u8)(BYTECEIL(q_bit_len))), ret, err); in ecgdsa_sign_raw()
142 ret = nn_init_from_buf(&k, nonce, noncelen); EG(ret, err); in ecgdsa_sign_raw()
H A Dfuzzing_ecdsa.c41 …_sign_context *ctx, const u8 *input, u8 inputlen, u8 *sig, u8 siglen, const u8 *nonce, u8 noncelen) in ecdsa_sign_raw() argument
142 MUST_HAVE((noncelen <= (u8)(BYTECEIL(q_bit_len))), ret, err); in ecdsa_sign_raw()
143 ret = nn_init_from_buf(&k, nonce, noncelen); EG(ret, err); in ecdsa_sign_raw()
H A Dfuzzing_ecrdsa.c82 …_sign_context *ctx, const u8 *input, u8 inputlen, u8 *sig, u8 siglen, const u8 *nonce, u8 noncelen) in ecrdsa_sign_raw() argument
144 MUST_HAVE((noncelen <= (u8)(BYTECEIL(q_bit_len))), ret, err); in ecrdsa_sign_raw()
145 ret = nn_init_from_buf(&k, nonce, noncelen); EG(ret, err); in ecrdsa_sign_raw()
/freebsd/crypto/libecc/src/examples/sig/dsa/
H A Ddsa.h69 const u8 *nonce, u16 noncelen,
H A Ddsa.c195 const u8 *nonce, u16 noncelen, in dsa_sign() argument
248 ret = _os2ip(&k, nonce, noncelen); EG(ret, err); in dsa_sign()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c80 size_t noncelen = CHACHA20_POLY1305_IVLEN; in chacha20_poly1305_initiv() local
89 memcpy(tempiv + CHACHA_CTR_SIZE - noncelen, bctx->oiv, in chacha20_poly1305_initiv()
90 noncelen); in chacha20_poly1305_initiv()
H A Dcipher_aes_ccm_hw_s390x.inc34 const unsigned char *nonce, size_t noncelen,
/freebsd/crypto/libecc/src/tests/
H A Dec_self_tests_core.c892 u8 noncelen; local
921 noncelen = (u8)(BYTECEIL(q_bit_len));
923 FORCE_USED_VAR(noncelen);
929 MUST_HAVE((u32)noncelen <= sizeof(nonce), ret, err);
934 if(ecdsa_sign_raw(&sig_ctx, digest, digestlen, sig, siglen, nonce, noncelen)){
943 if(ecgdsa_sign_raw(&sig_ctx, digest, digestlen, sig, siglen, nonce, noncelen)){
952 if(ecrdsa_sign_raw(&sig_ctx, digest, digestlen, sig, siglen, nonce, noncelen)){
/freebsd/sys/net/
H A Dif_ovpn.c86 uint8_t noncelen; member
772 kdir->noncelen = ivlen; in ovpn_create_kkey_dir()
1956 key->encrypt->noncelen); in ovpn_transmit_to_peer()
2356 key->decrypt->noncelen); in ovpn_udp_input()
/freebsd/crypto/openssl/providers/fips/
H A Dself_test_kats.c304 (void *)t->nonce, t->noncelen); in self_test_drbg()
H A Dself_test_data.inc77 size_t noncelen;