Home
last modified time | relevance | path

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

123

/third_party/openssl/crypto/ffc/
Dffc_params.c76 const unsigned char *seed, size_t seedlen) in ossl_ffc_params_set_seed() argument
87 if (seed != NULL && seedlen > 0) { in ossl_ffc_params_set_seed()
88 params->seed = OPENSSL_memdup(seed, seedlen); in ossl_ffc_params_set_seed()
91 params->seedlen = seedlen; in ossl_ffc_params_set_seed()
94 params->seedlen = 0; in ossl_ffc_params_set_seed()
137 size_t seedlen, int counter) in ossl_ffc_params_set_validate_params() argument
139 if (!ossl_ffc_params_set_seed(params, seed, seedlen)) in ossl_ffc_params_set_validate_params()
146 unsigned char **seed, size_t *seedlen, in ossl_ffc_params_get_validate_params() argument
151 if (seedlen != NULL) in ossl_ffc_params_get_validate_params()
152 *seedlen = params->seedlen; in ossl_ffc_params_get_validate_params()
[all …]
Dffc_params_generate.c135 int gindex, unsigned char *seed, size_t seedlen) in generate_canonical_g() argument
169 || !EVP_DigestUpdate(mctx, seed, seedlen) in generate_canonical_g()
314 int qsize, unsigned char *seed, size_t seedlen, in generate_q_fips186_4() argument
332 && RAND_bytes_ex(libctx, seed, seedlen, 0) <= 0) in generate_q_fips186_4()
339 if (!EVP_Digest(seed, seedlen, md, NULL, evpmd, NULL)) in generate_q_fips186_4()
521 size_t seedlen = 0; in ossl_ffc_params_FIPS186_4_gen_verify() local
584 seedlen = params->seedlen; in ossl_ffc_params_FIPS186_4_gen_verify()
585 if (seedlen == 0) in ossl_ffc_params_FIPS186_4_gen_verify()
586 seedlen = (size_t)mdsize; in ossl_ffc_params_FIPS186_4_gen_verify()
638 if ((seedlen * 8) < N) { in ossl_ffc_params_FIPS186_4_gen_verify()
[all …]
/third_party/node/deps/openssl/openssl/crypto/ffc/
Dffc_params.c76 const unsigned char *seed, size_t seedlen) in ossl_ffc_params_set_seed() argument
87 if (seed != NULL && seedlen > 0) { in ossl_ffc_params_set_seed()
88 params->seed = OPENSSL_memdup(seed, seedlen); in ossl_ffc_params_set_seed()
91 params->seedlen = seedlen; in ossl_ffc_params_set_seed()
94 params->seedlen = 0; in ossl_ffc_params_set_seed()
137 size_t seedlen, int counter) in ossl_ffc_params_set_validate_params() argument
139 if (!ossl_ffc_params_set_seed(params, seed, seedlen)) in ossl_ffc_params_set_validate_params()
146 unsigned char **seed, size_t *seedlen, in ossl_ffc_params_get_validate_params() argument
151 if (seedlen != NULL) in ossl_ffc_params_get_validate_params()
152 *seedlen = params->seedlen; in ossl_ffc_params_get_validate_params()
[all …]
Dffc_params_generate.c135 int gindex, unsigned char *seed, size_t seedlen) in generate_canonical_g() argument
169 || !EVP_DigestUpdate(mctx, seed, seedlen) in generate_canonical_g()
314 int qsize, unsigned char *seed, size_t seedlen, in generate_q_fips186_4() argument
332 && RAND_bytes_ex(libctx, seed, seedlen, 0) <= 0) in generate_q_fips186_4()
339 if (!EVP_Digest(seed, seedlen, md, NULL, evpmd, NULL)) in generate_q_fips186_4()
521 size_t seedlen = 0; in ossl_ffc_params_FIPS186_4_gen_verify() local
584 seedlen = params->seedlen; in ossl_ffc_params_FIPS186_4_gen_verify()
585 if (seedlen == 0) in ossl_ffc_params_FIPS186_4_gen_verify()
586 seedlen = (size_t)mdsize; in ossl_ffc_params_FIPS186_4_gen_verify()
638 if ((seedlen * 8) < N) { in ossl_ffc_params_FIPS186_4_gen_verify()
[all …]
/third_party/openssl/providers/implementations/rands/
Ddrbg_hash.c79 size_t outlen = drbg->seedlen; in hash_df()
152 assert(drbg->seedlen >= 1 && inlen >= 1 && inlen <= drbg->seedlen); in add_bytes()
154 d = &dst[drbg->seedlen - 1]; in add_bytes()
165 for (i = drbg->seedlen - inlen; i > 0; --i, d--) { in add_bytes()
183 && EVP_DigestUpdate(ctx, hash->V, drbg->seedlen) in add_hash_to_v()
214 memcpy(hash->vtmp, hash->V, drbg->seedlen); in hash_gen()
218 || !EVP_DigestUpdate(hash->ctx, hash->vtmp, drbg->seedlen)) in hash_gen()
263 && hash_df1(drbg, hash->C, 0x00, hash->V, drbg->seedlen); in drbg_hash_instantiate()
296 if (!hash_df(drbg, hash->C, 0x01, hash->V, drbg->seedlen, ent, ent_len, in drbg_hash_reseed()
299 memcpy(hash->V, hash->C, drbg->seedlen); in drbg_hash_reseed()
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/rands/
Ddrbg_hash.c79 size_t outlen = drbg->seedlen; in hash_df()
152 assert(drbg->seedlen >= 1 && inlen >= 1 && inlen <= drbg->seedlen); in add_bytes()
154 d = &dst[drbg->seedlen - 1]; in add_bytes()
165 for (i = drbg->seedlen - inlen; i > 0; --i, d--) { in add_bytes()
183 && EVP_DigestUpdate(ctx, hash->V, drbg->seedlen) in add_hash_to_v()
214 memcpy(hash->vtmp, hash->V, drbg->seedlen); in hash_gen()
218 || !EVP_DigestUpdate(hash->ctx, hash->vtmp, drbg->seedlen)) in hash_gen()
263 && hash_df1(drbg, hash->C, 0x00, hash->V, drbg->seedlen); in drbg_hash_instantiate()
296 if (!hash_df(drbg, hash->C, 0x01, hash->V, drbg->seedlen, ent, ent_len, in drbg_hash_reseed()
299 memcpy(hash->V, hash->C, drbg->seedlen); in drbg_hash_reseed()
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/
Dtls1_prf.c95 size_t seedlen; member
131 OPENSSL_cleanse(ctx->seed, ctx->seedlen); in kdf_tls1_prf_reset()
152 if (ctx->seedlen == 0) { in kdf_tls1_prf_derive()
163 ctx->seed, ctx->seedlen, in kdf_tls1_prf_derive()
204 const void *q = ctx->seed + ctx->seedlen; in kdf_tls1_prf_set_ctx_params()
210 TLS1_PRF_MAXBUF - ctx->seedlen, in kdf_tls1_prf_set_ctx_params()
213 ctx->seedlen += sz; in kdf_tls1_prf_set_ctx_params()
/third_party/openssl/providers/implementations/kdfs/
Dtls1_prf.c95 size_t seedlen; member
131 OPENSSL_cleanse(ctx->seed, ctx->seedlen); in kdf_tls1_prf_reset()
152 if (ctx->seedlen == 0) { in kdf_tls1_prf_derive()
163 ctx->seed, ctx->seedlen, in kdf_tls1_prf_derive()
204 const void *q = ctx->seed + ctx->seedlen; in kdf_tls1_prf_set_ctx_params()
210 TLS1_PRF_MAXBUF - ctx->seedlen, in kdf_tls1_prf_set_ctx_params()
213 ctx->seedlen += sz; in kdf_tls1_prf_set_ctx_params()
/third_party/mbedtls/library/
Dhmac_drbg.c151 size_t seedlen = 0; in hmac_drbg_reseed_core() local
177 seedlen += ctx->entropy_len; in hmac_drbg_reseed_core()
190 seed + seedlen, in hmac_drbg_reseed_core()
195 seedlen += ctx->entropy_len / 2; in hmac_drbg_reseed_core()
201 memcpy(seed + seedlen, additional, len); in hmac_drbg_reseed_core()
202 seedlen += len; in hmac_drbg_reseed_core()
206 if ((ret = mbedtls_hmac_drbg_update(ctx, seed, seedlen)) != 0) { in hmac_drbg_reseed_core()
215 mbedtls_platform_zeroize(seed, seedlen); in hmac_drbg_reseed_core()
Dctr_drbg.c348 size_t seedlen = 0; in mbedtls_ctr_drbg_reseed_internal() local
367 seedlen += ctx->entropy_len; in mbedtls_ctr_drbg_reseed_internal()
371 if (0 != ctx->f_entropy(ctx->p_entropy, seed + seedlen, nonce_len)) { in mbedtls_ctr_drbg_reseed_internal()
374 seedlen += nonce_len; in mbedtls_ctr_drbg_reseed_internal()
379 memcpy(seed + seedlen, additional, len); in mbedtls_ctr_drbg_reseed_internal()
380 seedlen += len; in mbedtls_ctr_drbg_reseed_internal()
384 if ((ret = block_cipher_df(seed, seed, seedlen)) != 0) { in mbedtls_ctr_drbg_reseed_internal()
/third_party/openssl/providers/implementations/keymgmt/
Ddsa_kmgmt.c61 size_t seedlen; member
444 size_t seedlen) in dsa_set_gen_seed() argument
446 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dsa_set_gen_seed()
448 gctx->seedlen = 0; in dsa_set_gen_seed()
449 if (seed != NULL && seedlen > 0) { in dsa_set_gen_seed()
450 gctx->seed = OPENSSL_memdup(seed, seedlen); in dsa_set_gen_seed()
453 gctx->seedlen = seedlen; in dsa_set_gen_seed()
581 && !ossl_ffc_params_set_seed(ffc, gctx->seed, gctx->seedlen)) in dsa_gen()
630 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dsa_gen_cleanup()
Ddh_kmgmt.c64 size_t seedlen; member
506 size_t seedlen) in dh_set_gen_seed() argument
508 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dh_set_gen_seed()
510 gctx->seedlen = 0; in dh_set_gen_seed()
511 if (seed != NULL && seedlen > 0) { in dh_set_gen_seed()
512 gctx->seed = OPENSSL_memdup(seed, seedlen); in dh_set_gen_seed()
515 gctx->seedlen = seedlen; in dh_set_gen_seed()
729 if (!ossl_ffc_params_set_seed(ffc, gctx->seed, gctx->seedlen)) in dh_gen()
798 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dh_gen_cleanup()
/third_party/node/deps/openssl/openssl/providers/implementations/keymgmt/
Ddsa_kmgmt.c61 size_t seedlen; member
447 size_t seedlen) in dsa_set_gen_seed() argument
449 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dsa_set_gen_seed()
451 gctx->seedlen = 0; in dsa_set_gen_seed()
452 if (seed != NULL && seedlen > 0) { in dsa_set_gen_seed()
453 gctx->seed = OPENSSL_memdup(seed, seedlen); in dsa_set_gen_seed()
456 gctx->seedlen = seedlen; in dsa_set_gen_seed()
584 && !ossl_ffc_params_set_seed(ffc, gctx->seed, gctx->seedlen)) in dsa_gen()
633 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dsa_gen_cleanup()
Ddh_kmgmt.c64 size_t seedlen; member
509 size_t seedlen) in dh_set_gen_seed() argument
511 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dh_set_gen_seed()
513 gctx->seedlen = 0; in dh_set_gen_seed()
514 if (seed != NULL && seedlen > 0) { in dh_set_gen_seed()
515 gctx->seed = OPENSSL_memdup(seed, seedlen); in dh_set_gen_seed()
518 gctx->seedlen = seedlen; in dh_set_gen_seed()
732 if (!ossl_ffc_params_set_seed(ffc, gctx->seed, gctx->seedlen)) in dh_gen()
801 OPENSSL_clear_free(gctx->seed, gctx->seedlen); in dh_gen_cleanup()
/third_party/node/deps/openssl/openssl/include/internal/
Dffc.h102 size_t seedlen; member
133 const unsigned char *seed, size_t seedlen);
144 size_t seedlen, int counter);
146 unsigned char **seed, size_t *seedlen,
/third_party/openssl/include/internal/
Dffc.h97 size_t seedlen; member
128 const unsigned char *seed, size_t seedlen);
139 size_t seedlen, int counter);
141 unsigned char **seed, size_t *seedlen,
/third_party/openssl/demos/pkey/
DEVP_PKEY_DSA_paramvalidate.c115 size_t seedlen; in main() local
117 if (!OPENSSL_hexstr2buf_ex(seed, sizeof(seed), &seedlen, hexseed, '\0')) in main()
160 (void *)seed, seedlen); in main()
Ddsa.inc118 size_t seedlen;
130 sizeof(seed), &seedlen) > 0) {
132 BIO_dump(bio, seed, seedlen);
/third_party/node/deps/openssl/openssl/crypto/dh/
Ddh_asn1.c141 size_t seedlen = 0; in i2d_DHxparams() local
148 ossl_ffc_params_get_validate_params(params, &seed.data, &seedlen, &counter); in i2d_DHxparams()
149 seed.length = (int)seedlen; in i2d_DHxparams()
/third_party/openssl/crypto/dh/
Ddh_asn1.c141 size_t seedlen = 0; in i2d_DHxparams() local
148 ossl_ffc_params_get_validate_params(params, &seed.data, &seedlen, &counter); in i2d_DHxparams()
149 seed.length = (int)seedlen; in i2d_DHxparams()
/third_party/openssl/ohos_lite/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))
/third_party/openssl/crypto/evp/
Ddsa_ctrl.c61 size_t seedlen) in EVP_PKEY_CTX_set_dsa_paramgen_seed() argument
70 (void *)seed, seedlen); in EVP_PKEY_CTX_set_dsa_paramgen_seed()
Ddh_ctrl.c65 size_t seedlen) in EVP_PKEY_CTX_set_dh_paramgen_seed() argument
74 (void *)seed, seedlen); in EVP_PKEY_CTX_set_dh_paramgen_seed()
/third_party/node/deps/openssl/openssl/crypto/evp/
Ddsa_ctrl.c61 size_t seedlen) in EVP_PKEY_CTX_set_dsa_paramgen_seed() argument
70 (void *)seed, seedlen); in EVP_PKEY_CTX_set_dsa_paramgen_seed()
Ddh_ctrl.c65 size_t seedlen) in EVP_PKEY_CTX_set_dh_paramgen_seed() argument
74 (void *)seed, seedlen); in EVP_PKEY_CTX_set_dh_paramgen_seed()

123