Searched refs:LIMB_BYTES (Results 1 – 8 of 8) sorted by relevance
/external/rust/crates/ring/src/ec/suite_b/ecdsa/ |
D | digest_scalar.rs | 20 limb::{self, LIMB_BYTES}, 63 let digest = if digest.len() > num_limbs * LIMB_BYTES { in digest_scalar_() 64 &digest[..(num_limbs * LIMB_BYTES)] in digest_scalar_() 83 limb::{self, LIMB_BYTES}, 113 ops.public_key_ops.common.num_limbs * LIMB_BYTES in test()
|
/external/rust/crates/ring/src/ |
D | limb.rs | 55 pub const LIMB_BYTES: usize = (LIMB_BITS + 7) / 8; constant 206 let mut bytes_in_current_limb = input.len() % LIMB_BYTES; in parse_big_endian_and_pad_consttime() 208 bytes_in_current_limb = LIMB_BYTES; in parse_big_endian_and_pad_consttime() 211 let num_encoded_limbs = (input.len() / LIMB_BYTES) in parse_big_endian_and_pad_consttime() 212 + (if bytes_in_current_limb == LIMB_BYTES { in parse_big_endian_and_pad_consttime() 235 bytes_in_current_limb = LIMB_BYTES; in parse_big_endian_and_pad_consttime() 244 assert_eq!(out_len, num_limbs * LIMB_BYTES); in big_endian_from_limbs() 247 for j in 0..LIMB_BYTES { in big_endian_from_limbs() 248 out[((num_limbs - i - 1) * LIMB_BYTES) + (LIMB_BYTES - j - 1)] = (limb & 0xff) as u8; in big_endian_from_limbs() 504 let mut result = [0; 8 / LIMB_BYTES]; in test_parse_big_endian_and_pad_consttime()
|
D | rsa.rs | 37 const PUBLIC_KEY_PUBLIC_MODULUS_MAX_LEN: usize = bigint::MODULUS_MAX_LIMBS * limb::LIMB_BYTES;
|
/external/rust/crates/ring/src/ec/suite_b/ |
D | private_key.rs | 22 limb::{self, LIMB_BYTES}, 33 let bytes = &mut bytes[..(num_limbs * LIMB_BYTES)]; in random_scalar() 102 debug_assert_eq!(bytes.len(), ops.common.num_limbs * LIMB_BYTES); in check_scalar_big_endian_bytes() 138 let elem_and_scalar_bytes = ops.common.num_limbs * LIMB_BYTES; in public_from_private()
|
D | ops.rs | 217 let encoded_value = input.read_bytes(self.common.num_limbs * LIMB_BYTES)?; in elem_parse() 245 self.common.num_limbs * LIMB_BYTES in scalar_bytes_len() 415 if bytes.len() != ops.num_limbs * LIMB_BYTES { in parse_big_endian_fixed_consttime() 962 let mut actual_result = vec![4u8; 1 + (2 * (cops.num_limbs * LIMB_BYTES))]; in point_mul_serialized_test() 964 let (x, y) = actual_result[1..].split_at_mut(cops.num_limbs * LIMB_BYTES); in point_mul_serialized_test() 1173 let mut bytes = vec![0; (ops.num_limbs * LIMB_BYTES) - unpadded_bytes.len()]; in consume_padded_bytes()
|
/external/rust/crates/ring/src/rsa/ |
D | verification.rs | 21 limb::LIMB_BYTES, 331 let n_bytes_padded = ((n_bytes + (LIMB_BYTES - 1)) / LIMB_BYTES) * LIMB_BYTES;
|
/external/rust/crates/ring/src/ec/curve25519/ |
D | scalar.rs | 27 const ORDER: [limb::Limb; SCALAR_LEN / limb::LIMB_BYTES] = 34 let mut limbs = [0; SCALAR_LEN / limb::LIMB_BYTES];
|
/external/rust/crates/ring/src/arithmetic/ |
D | bigint.rs | 42 limb::{self, Limb, LimbMask, LIMB_BITS, LIMB_BYTES}, 102 let num_limbs = (input.len() + LIMB_BYTES - 1) / LIMB_BYTES; in positive_minimal_width_from_be_bytes() 928 assert_eq!(ALIGNMENT % LIMB_BYTES, 0); in elem_exp_consttime() 932 let table = &mut table[((ALIGNMENT - misalignment) / LIMB_BYTES)..]; in elem_exp_consttime() 1133 let mut limbs = vec![0; (input.len() + LIMB_BYTES - 1) / LIMB_BYTES]; in from_be_bytes_with_bit_length() 1531 &[0xff; LIMB_BYTES * MODULUS_MIN_LIMBS], in test_modulus_debug()
|