Lines Matching refs:seed
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
335 && RAND_bytes_ex(libctx, seed, seedlen, 0) <= 0) in generate_q_fips186_4()
342 if (!EVP_Digest(seed, seedlen, md, NULL, evpmd, NULL)) in generate_q_fips186_4()
390 unsigned char *buf, unsigned char *seed, in generate_q_fips186_2() argument
405 if (generate_seed && RAND_bytes_ex(libctx, seed, qsize, 0) <= 0) in generate_q_fips186_2()
408 memcpy(buf, seed, qsize); in generate_q_fips186_2()
409 memcpy(buf2, seed, qsize); in generate_q_fips186_2()
419 if (!EVP_Digest(seed, qsize, md, NULL, evpmd, NULL)) in generate_q_fips186_2()
522 unsigned char *seed = NULL, *seed_tmp = NULL; in ossl_ffc_params_FIPS186_4_gen_verify() local
591 if (params->seed != NULL) in ossl_ffc_params_FIPS186_4_gen_verify()
592 seed = params->seed; in ossl_ffc_params_FIPS186_4_gen_verify()
603 if (seed == NULL || params->pcounter < 0) { in ossl_ffc_params_FIPS186_4_gen_verify()
650 if (seed == NULL) { in ossl_ffc_params_FIPS186_4_gen_verify()
657 seed = OPENSSL_malloc(seedlen); in ossl_ffc_params_FIPS186_4_gen_verify()
658 if (seed == NULL) in ossl_ffc_params_FIPS186_4_gen_verify()
686 if (!generate_q_fips186_4(ctx, q, md, qsize, seed, seedlen, in ossl_ffc_params_FIPS186_4_gen_verify()
687 seed != params->seed, &m, res, cb)) in ossl_ffc_params_FIPS186_4_gen_verify()
699 memcpy(seed_tmp, seed, seedlen); in ossl_ffc_params_FIPS186_4_gen_verify()
711 if (seed == params->seed) { in ossl_ffc_params_FIPS186_4_gen_verify()
749 if ((seed != NULL) && (params->gindex != FFC_UNVERIFIABLE_GINDEX)) { in ossl_ffc_params_FIPS186_4_gen_verify()
752 params->gindex, seed, seedlen)) { in ossl_ffc_params_FIPS186_4_gen_verify()
784 if (!ossl_ffc_params_set_validate_params(params, seed, seedlen, in ossl_ffc_params_FIPS186_4_gen_verify()
796 if (seed != params->seed) in ossl_ffc_params_FIPS186_4_gen_verify()
797 OPENSSL_free(seed); in ossl_ffc_params_FIPS186_4_gen_verify()
815 unsigned char seed[SHA256_DIGEST_LENGTH]; in ossl_ffc_params_FIPS186_2_gen_verify() local
827 unsigned char *seed_in = params->seed; in ossl_ffc_params_FIPS186_2_gen_verify()
883 memcpy(seed, seed_in, seed_len); in ossl_ffc_params_FIPS186_2_gen_verify()
937 if (!generate_q_fips186_2(ctx, q, md, buf, seed, qsize, in ossl_ffc_params_FIPS186_2_gen_verify()
1025 if (!ossl_ffc_params_set_validate_params(params, seed, qsize, pcounter)) in ossl_ffc_params_FIPS186_2_gen_verify()