Lines Matching refs:evpmd
35 const EVP_MD *evpmd = bits >= 2048 ? EVP_sha256() : EVP_sha1(); in DSA_generate_parameters_ex() local
36 size_t qbits = EVP_MD_size(evpmd) * 8; in DSA_generate_parameters_ex()
38 return dsa_builtin_paramgen(ret, bits, qbits, evpmd, in DSA_generate_parameters_ex()
45 const EVP_MD *evpmd, const unsigned char *seed_in, in dsa_builtin_paramgen() argument
67 if (evpmd == NULL) { in dsa_builtin_paramgen()
69 evpmd = EVP_sha1(); in dsa_builtin_paramgen()
71 evpmd = EVP_sha224(); in dsa_builtin_paramgen()
73 evpmd = EVP_sha256(); in dsa_builtin_paramgen()
75 qsize = EVP_MD_size(evpmd); in dsa_builtin_paramgen()
143 if (!EVP_Digest(seed, qsize, md, NULL, evpmd, NULL)) in dsa_builtin_paramgen()
145 if (!EVP_Digest(buf, qsize, buf2, NULL, evpmd, NULL)) in dsa_builtin_paramgen()
196 if (!EVP_Digest(buf, qsize, md, NULL, evpmd, NULL)) in dsa_builtin_paramgen()
307 const EVP_MD *evpmd, const unsigned char *seed_in, in dsa_builtin_paramgen2() argument
335 if (evpmd == NULL) { in dsa_builtin_paramgen2()
337 evpmd = EVP_sha1(); in dsa_builtin_paramgen2()
339 evpmd = EVP_sha224(); in dsa_builtin_paramgen2()
341 evpmd = EVP_sha256(); in dsa_builtin_paramgen2()
344 mdsize = EVP_MD_size(evpmd); in dsa_builtin_paramgen2()
409 if (!EVP_Digest(seed, seed_len, md, NULL, evpmd, NULL)) in dsa_builtin_paramgen2()
475 if (!EVP_Digest(seed, seed_len, md, NULL, evpmd, NULL)) in dsa_builtin_paramgen2()
556 if (!EVP_DigestInit_ex(mctx, evpmd, NULL)) in dsa_builtin_paramgen2()