Home
last modified time | relevance | path

Searched refs:seedlen (Results 1 – 13 of 13) sorted by relevance

/third_party/openssl/crypto/kdf/
Dtls1_prf.c33 size_t seedlen; member
53 OPENSSL_cleanse(kctx->seed, kctx->seedlen); in pkey_tls1_prf_cleanup()
70 OPENSSL_cleanse(kctx->seed, kctx->seedlen); in pkey_tls1_prf_ctrl()
71 kctx->seedlen = 0; in pkey_tls1_prf_ctrl()
81 if (p1 < 0 || p1 > (int)(TLS1_PRF_MAXBUF - kctx->seedlen)) in pkey_tls1_prf_ctrl()
83 memcpy(kctx->seed + kctx->seedlen, p2, p1); in pkey_tls1_prf_ctrl()
84 kctx->seedlen += p1; in pkey_tls1_prf_ctrl()
136 if (kctx->seedlen == 0) { in pkey_tls1_prf_derive()
141 kctx->seed, kctx->seedlen, in pkey_tls1_prf_derive()
/third_party/mbedtls/library/
Dhmac_drbg.c149 size_t seedlen = 0; in hmac_drbg_reseed_core() local
176 seedlen += ctx->entropy_len; in hmac_drbg_reseed_core()
190 seed + seedlen, in hmac_drbg_reseed_core()
196 seedlen += ctx->entropy_len / 2; in hmac_drbg_reseed_core()
203 memcpy( seed + seedlen, additional, len ); in hmac_drbg_reseed_core()
204 seedlen += len; in hmac_drbg_reseed_core()
208 if( ( ret = mbedtls_hmac_drbg_update( ctx, seed, seedlen ) ) != 0 ) in hmac_drbg_reseed_core()
216 mbedtls_platform_zeroize( seed, seedlen ); in hmac_drbg_reseed_core()
Dctr_drbg.c354 size_t seedlen = 0; in mbedtls_ctr_drbg_reseed_internal() local
371 seedlen += ctx->entropy_len; in mbedtls_ctr_drbg_reseed_internal()
376 if( 0 != ctx->f_entropy( ctx->p_entropy, seed + seedlen, nonce_len ) ) in mbedtls_ctr_drbg_reseed_internal()
380 seedlen += nonce_len; in mbedtls_ctr_drbg_reseed_internal()
386 memcpy( seed + seedlen, additional, len ); in mbedtls_ctr_drbg_reseed_internal()
387 seedlen += len; in mbedtls_ctr_drbg_reseed_internal()
391 if( ( ret = block_cipher_df( seed, seed, seedlen ) ) != 0 ) in mbedtls_ctr_drbg_reseed_internal()
/third_party/openssl/crypto/dh/
Ddh_asn1.c106 dh->seedlen = dhx->vparams->seed->length; in IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname()
127 if (dh->counter && dh->seed && dh->seedlen > 0) { in i2d_DHxparams()
130 bs.length = dh->seedlen; in i2d_DHxparams()
Ddh_ameth.c318 for (i = 0; i < x->seedlen; i++) { in do_dh_print()
325 ((i + 1) == x->seedlen) ? "" : ":") <= 0) in do_dh_print()
409 to->seedlen = 0; in int_dh_param_copy()
411 to->seed = OPENSSL_memdup(from->seed, from->seedlen); in int_dh_param_copy()
414 to->seedlen = from->seedlen; in int_dh_param_copy()
Ddh_local.h31 int seedlen; member
/third_party/openssl/crypto/rand/
Ddrbg_ctr.c258 ctr_XOR(ctr, ctr->KX, drbg->seedlen); in ctr_update()
450 drbg->seedlen = keylen + 16; in drbg_ctr_init()
477 drbg->min_entropylen = drbg->seedlen; in drbg_ctr_init()
478 drbg->max_entropylen = drbg->seedlen; in drbg_ctr_init()
482 drbg->max_perslen = drbg->seedlen; in drbg_ctr_init()
483 drbg->max_adinlen = drbg->seedlen; in drbg_ctr_init()
Ddrbg_lib.c1014 size_t seedlen; in drbg_add() local
1023 seedlen = rand_drbg_seedlen(drbg); in drbg_add()
1027 if (buflen < seedlen || randomness < (double) seedlen) { in drbg_add()
1052 if (randomness > (double)seedlen) { in drbg_add()
1061 randomness = (double)seedlen; in drbg_add()
Drand_local.h269 size_t seedlen; member
/third_party/openssl/include/openssl/
Dkdf.h45 # define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \ argument
47 EVP_PKEY_CTRL_TLS_SEED, seedlen, (void *)(seed))
Drsa.h346 long seedlen, const EVP_MD *dgst);
/third_party/openssl/crypto/rsa/
Drsa_oaep.c274 const unsigned char *seed, long seedlen, const EVP_MD *dgst) in PKCS1_MGF1() argument
294 || !EVP_DigestUpdate(c, seed, seedlen) in PKCS1_MGF1()
/third_party/openssl/doc/man3/
DEVP_PKEY_CTX_set_tls1_prf_md.pod17 unsigned char *seed, int seedlen);
33 EVP_PKEY_CTX_add1_tls1_prf_seed() sets the seed to B<seedlen> bytes of B<seed>.