/third_party/openssl/crypto/ffc/ |
D | ffc_params.c | 76 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 …]
|
D | ffc_params_generate.c | 135 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/ |
D | ffc_params.c | 76 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 …]
|
D | ffc_params_generate.c | 135 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/ |
D | drbg_hash.c | 79 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/ |
D | drbg_hash.c | 79 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/ |
D | tls1_prf.c | 95 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/ |
D | tls1_prf.c | 95 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/ |
D | hmac_drbg.c | 151 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()
|
D | ctr_drbg.c | 348 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/ |
D | dsa_kmgmt.c | 61 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()
|
D | dh_kmgmt.c | 64 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/ |
D | dsa_kmgmt.c | 61 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()
|
D | dh_kmgmt.c | 64 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/ |
D | ffc.h | 102 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/ |
D | ffc.h | 97 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/ |
D | EVP_PKEY_DSA_paramvalidate.c | 115 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()
|
D | dsa.inc | 118 size_t seedlen; 130 sizeof(seed), &seedlen) > 0) { 132 BIO_dump(bio, seed, seedlen);
|
/third_party/node/deps/openssl/openssl/crypto/dh/ |
D | dh_asn1.c | 141 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/ |
D | dh_asn1.c | 141 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/ |
D | kdf.h | 45 # 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/ |
D | dsa_ctrl.c | 61 size_t seedlen) in EVP_PKEY_CTX_set_dsa_paramgen_seed() argument 70 (void *)seed, seedlen); in EVP_PKEY_CTX_set_dsa_paramgen_seed()
|
D | dh_ctrl.c | 65 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/ |
D | dsa_ctrl.c | 61 size_t seedlen) in EVP_PKEY_CTX_set_dsa_paramgen_seed() argument 70 (void *)seed, seedlen); in EVP_PKEY_CTX_set_dsa_paramgen_seed()
|
D | dh_ctrl.c | 65 size_t seedlen) in EVP_PKEY_CTX_set_dh_paramgen_seed() argument 74 (void *)seed, seedlen); in EVP_PKEY_CTX_set_dh_paramgen_seed()
|