Home
last modified time | relevance | path

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

/openssl/providers/implementations/kdfs/
H A Dhmacdrbg_kdf.c36 size_t entropylen, noncelen; member
65 OPENSSL_clear_free(ctx->nonce, ctx->noncelen); in hmac_drbg_kdf_reset()
104 || !ossl_prov_memdup(src->nonce, src->noncelen, in hmac_drbg_kdf_dup()
105 &dst->nonce, &dst->noncelen)) in hmac_drbg_kdf_dup()
129 || ctx->noncelen == 0 in hmac_drbg_kdf_derive()
131 ctx->nonce, ctx->noncelen, NULL, 0)) in hmac_drbg_kdf_derive()
208 hmac->noncelen = size; in hmac_drbg_kdf_set_ctx_params()
/openssl/providers/implementations/rands/
H A Ddrbg.c354 size_t noncelen = 0, entropylen = 0; in ossl_prov_drbg_instantiate() local
386 noncelen = drbg->parent_nonce(drbg->parent, NULL, drbg->strength, in ossl_prov_drbg_instantiate()
389 if (noncelen == 0) { in ossl_prov_drbg_instantiate()
393 nonce = OPENSSL_malloc(noncelen); in ossl_prov_drbg_instantiate()
398 if (noncelen != drbg->parent_nonce(drbg->parent, nonce, in ossl_prov_drbg_instantiate()
421 noncelen = prov_drbg_get_nonce(drbg, &nonce, drbg->min_noncelen, in ossl_prov_drbg_instantiate()
423 if (noncelen < drbg->min_noncelen in ossl_prov_drbg_instantiate()
424 || noncelen > drbg->max_noncelen) { in ossl_prov_drbg_instantiate()
448 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen, in ossl_prov_drbg_instantiate()
463 ossl_prov_cleanup_nonce(drbg->provctx, nonce, noncelen); in ossl_prov_drbg_instantiate()
[all …]
H A Ddrbg_local.h76 const unsigned char *nonce, size_t noncelen,
183 const unsigned char *nonce, size_t noncelen,
H A Ddrbg_ctr.c267 const unsigned char *nonce, size_t noncelen) in ctr_update() argument
294 if (!ctr_df(ctr, in1, in1len, nonce, noncelen, in2, in2len)) in ctr_update()
312 const unsigned char *nonce, size_t noncelen, in drbg_ctr_instantiate() argument
326 if (!ctr_update(drbg, entropy, entropylen, pers, perslen, nonce, noncelen)) in drbg_ctr_instantiate()
/openssl/crypto/
H A Ddeterministic_nonce.c133 const unsigned char *nonce, size_t noncelen, in kdf_setup() argument
155 (void *)nonce, noncelen); in kdf_setup()
/openssl/crypto/hpke/
H A Dhpke.c64 size_t noncelen; member
165 hctx->noncelen, NULL) != 1) { in hpke_aead_dec()
246 hctx->noncelen, NULL) != 1) { in hpke_aead_enc()
424 if (ctx == NULL || blen < sizeof(seq_copy) || blen != ctx->noncelen) in hpke_seqnonce2buf()
747 ctx->noncelen = aead_info->Nn; in hpke_do_middle()
748 ctx->nonce = OPENSSL_malloc(ctx->noncelen); in hpke_do_middle()
751 if (ossl_hpke_labeled_expand(kctx, ctx->nonce, ctx->noncelen, in hpke_do_middle()
859 OPENSSL_clear_free(ctx->nonce, ctx->noncelen); in OSSL_HPKE_CTX_free()
/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,
/openssl/providers/fips/
H A Dself_test_kats.c313 (void *)t->nonce, t->noncelen); in self_test_drbg()
H A Dself_test_data.inc91 size_t noncelen;

Completed in 48 milliseconds