Lines Matching refs:qlen_bits
28 static int bits2int(BIGNUM *out, int qlen_bits, in bits2int() argument
37 shift = blen_bits - qlen_bits; in bits2int()
55 static int bits2int_consttime(BIGNUM *out, int qlen_bits, in bits2int_consttime() argument
67 shift = blen_bits - qlen_bits; in bits2int_consttime()
99 static int bits2octets(unsigned char *out, const BIGNUM *q, int qlen_bits, in bits2octets() argument
106 || !bits2int(z, qlen_bits, in, inlen)) in bits2octets()
189 int ret = 0, rlen = 0, qlen_bits = 0; in ossl_gen_deterministic_nonce_rfc6979() local
197 qlen_bits = BN_num_bits(q); in ossl_gen_deterministic_nonce_rfc6979()
198 if (qlen_bits == 0) in ossl_gen_deterministic_nonce_rfc6979()
202 rlen = (qlen_bits + 7) / 8; in ossl_gen_deterministic_nonce_rfc6979()
216 || !bits2octets(nonceh, q, qlen_bits, rlen, hm, hmlen)) in ossl_gen_deterministic_nonce_rfc6979()
225 || !bits2int_consttime(out, qlen_bits, T, rlen + prefsz)) in ossl_gen_deterministic_nonce_rfc6979()