Lines Matching refs:qsize
144 int i, k, n=0, m=0, qsize = qbits >> 3; in dsa_builtin_paramgen() local
150 if (qsize != SHA_DIGEST_LENGTH && qsize != SHA224_DIGEST_LENGTH && in dsa_builtin_paramgen()
151 qsize != SHA256_DIGEST_LENGTH) in dsa_builtin_paramgen()
167 if (seed_len && (seed_len < (size_t)qsize)) in dsa_builtin_paramgen()
169 if (seed_len > (size_t)qsize) in dsa_builtin_paramgen()
170 seed_len = qsize; /* App. 2.2 of FIPS PUB 186 allows larger SEED, in dsa_builtin_paramgen()
206 RAND_pseudo_bytes(seed, qsize); in dsa_builtin_paramgen()
214 memcpy(buf , seed, qsize); in dsa_builtin_paramgen()
215 memcpy(buf2, seed, qsize); in dsa_builtin_paramgen()
217 for (i = qsize-1; i >= 0; i--) in dsa_builtin_paramgen()
225 if (!EVP_Digest(seed, qsize, md, NULL, evpmd, NULL)) in dsa_builtin_paramgen()
227 if (!EVP_Digest(buf, qsize, buf2, NULL, evpmd, NULL)) in dsa_builtin_paramgen()
229 for (i = 0; i < qsize; i++) in dsa_builtin_paramgen()
234 md[qsize-1] |= 0x01; in dsa_builtin_paramgen()
235 if (!BN_bin2bn(md, qsize, q)) in dsa_builtin_paramgen()
270 for (i = qsize-1; i >= 0; i--) in dsa_builtin_paramgen()
277 if (!EVP_Digest(buf, qsize, md ,NULL, evpmd, in dsa_builtin_paramgen()
282 if (!BN_bin2bn(md, qsize, r0)) in dsa_builtin_paramgen()
284 if (!BN_lshift(r0,r0,(qsize << 3)*k)) goto err; in dsa_builtin_paramgen()
361 memcpy(seed_out, seed, qsize); in dsa_builtin_paramgen()