Home
last modified time | relevance | path

Searched refs:BitLength (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/ring/src/rsa/
Dverification.rs29 pub n_bits: bits::BitLength,
36 n_min_bits: bits::BitLength, in from_modulus_and_exponent() argument
37 n_max_bits: bits::BitLength, in from_modulus_and_exponent() argument
55 const N_MIN_BITS: bits::BitLength = bits::BitLength::from_usize_bits(1024); in from_modulus_and_exponent()
62 bits::BitLength::from_usize_bytes(n_bits.as_usize_bytes_rounded_up()) in from_modulus_and_exponent()
116 min_bits: bits::BitLength::from_usize_bits($min_bits),
284 let max_bits = bits::BitLength::from_usize_bytes(PUBLIC_KEY_PUBLIC_MODULUS_MAX_LEN)?; in verify_rsa_()
327 n_bits: bits::BitLength, in fill_be_bytes_n() argument
Dpadding.rs38 mod_bits: bits::BitLength, in encode() argument
52 mod_bits: bits::BitLength, in verify() argument
82 _mod_bits: bits::BitLength, in encode() argument
95 mod_bits: bits::BitLength, in verify() argument
241 mod_bits: bits::BitLength, in encode() argument
313 mod_bits: bits::BitLength, in verify() argument
412 mod_bits: bits::BitLength, in new() argument
Dsigning.rs236 bits::BitLength::from_usize_bits(2048), in from_der_reader()
/external/rust/crates/ring/src/
Dbits.rs18 pub struct BitLength(usize); struct
22 impl BitLength { impl
60 pub fn try_sub_1(self) -> Result<BitLength, error::Unspecified> { in try_sub_1() argument
62 Ok(BitLength(sum)) in try_sub_1()
Drsa.rs40 const PRIVATE_KEY_PUBLIC_MODULUS_MAX_BITS: bits::BitLength = bits::BitLength::from_usize_bits(4096);
46 min_bits: bits::BitLength,
Dlimb.rs109 pub fn limbs_minimal_bits(a: &[Limb]) -> bits::BitLength { in limbs_minimal_bits() argument
120 return bits::BitLength::from_usize_bits( in limbs_minimal_bits()
128 bits::BitLength::from_usize_bits(0) in limbs_minimal_bits()
Dtest.rs257 pub fn consume_usize_bits(&mut self, key: &str) -> bits::BitLength { in consume_usize_bits() argument
260 bits::BitLength::from_usize_bits(bits) in consume_usize_bits()
/external/boringssl/src/util/fipstools/acvp/acvptool/subprocess/
Dhash.go35 BitLength uint64 `json:"len"`
90 if uint64(len(test.MsgHex))*4 != test.BitLength {
91 …f length %d but specifies a bit length of %d", group.ID, test.ID, len(test.MsgHex), test.BitLength)
/external/rust/crates/ring/src/aead/
Daes.rs16 use crate::{bits::BitLength, c, cpu, endian::*, error, polyfill};
36 key_bits: BitLength, in set_encrypt_key() argument
122 Variant::AES_128 => BitLength::from_usize_bits(128), in new()
123 Variant::AES_256 => BitLength::from_usize_bits(256), in new()
125 if BitLength::from_usize_bytes(bytes.len())? != key_bits { in new()
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs235 ) -> Result<(Self, bits::BitLength), error::KeyRejected> { in from_be_bytes_with_bit_length() argument
242 ) -> Result<(Self, bits::BitLength), error::KeyRejected> { in from_nonnegative_with_bit_length() argument
250 fn from_boxed_limbs(n: BoxedLimbs<M>) -> Result<(Self, bits::BitLength), error::KeyRejected> { in from_boxed_limbs() argument
609 fn newRR(m: &PartialModulus<M>, m_bits: bits::BitLength) -> Self { in newRR()
1132 ) -> Result<(Self, bits::BitLength), error::Unspecified> { in from_be_bytes_with_bit_length() argument