Lines Matching refs:rlen
83 static int int2octets(unsigned char *out, const BIGNUM *num, int rlen) in int2octets() argument
85 return BN_bn2binpad(num, out, rlen) >= 0; in int2octets()
100 int rlen, const unsigned char *in, size_t inlen) in bits2octets() argument
114 ret = int2octets(out, z, rlen); in bits2octets()
189 int ret = 0, rlen = 0, qlen_bits = 0; in ossl_gen_deterministic_nonce_rfc6979() local
202 rlen = (qlen_bits + 7) / 8; in ossl_gen_deterministic_nonce_rfc6979()
203 allocsz = prefsz + 3 * rlen; in ossl_gen_deterministic_nonce_rfc6979()
210 nonceh = rbits + rlen; in ossl_gen_deterministic_nonce_rfc6979()
211 entropyx = nonceh + rlen; in ossl_gen_deterministic_nonce_rfc6979()
215 if (!int2octets(entropyx, priv, rlen) in ossl_gen_deterministic_nonce_rfc6979()
216 || !bits2octets(nonceh, q, qlen_bits, rlen, hm, hmlen)) in ossl_gen_deterministic_nonce_rfc6979()
219 kdfctx = kdf_setup(digestname, entropyx, rlen, nonceh, rlen, libctx, propq); in ossl_gen_deterministic_nonce_rfc6979()
224 if (!EVP_KDF_derive(kdfctx, rbits, rlen, NULL) in ossl_gen_deterministic_nonce_rfc6979()
225 || !bits2int_consttime(out, qlen_bits, T, rlen + prefsz)) in ossl_gen_deterministic_nonce_rfc6979()