Lines Matching refs:n_bits
29 pub n_bits: bits::BitLength, field
50 let (n, n_bits) = bigint::Modulus::from_be_bytes_with_bit_length(n)?; in from_modulus_and_exponent()
62 bits::BitLength::from_usize_bytes(n_bits.as_usize_bytes_rounded_up()) in from_modulus_and_exponent()
67 if n_bits > n_max_bits { in from_modulus_and_exponent()
82 Ok(Self { n, e, n_bits }) in from_modulus_and_exponent()
290 let Key { n, e, n_bits } = Key::from_modulus_and_exponent(n, e, params.min_bits, max_bits, 3)?; in verify_rsa_()
293 if signature.len() != n_bits.as_usize_bytes_rounded_up() { in verify_rsa_()
311 let decoded = fill_be_bytes_n(m, n_bits, &mut decoded); in verify_rsa_()
316 params.padding_alg.verify(&m_hash, m, n_bits) in verify_rsa_()
327 n_bits: bits::BitLength, in fill_be_bytes_n()
330 let n_bytes = n_bits.as_usize_bytes_rounded_up();