Home
last modified time | relevance | path

Searched refs:ELEM_LEN (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/ring/src/ec/curve25519/
Dops.rs63 pub type EncodedPoint = [u8; ELEM_LEN];
64 pub const ELEM_LEN: usize = 32; constant
125 let mut bytes = [0; ELEM_LEN]; in encode_point()
143 bytes[ELEM_LEN - 1] ^= sign_bit << 7; in encode_point()
Ded25519.rs17 use super::ops::ELEM_LEN;
24 pub const ED25519_PUBLIC_KEY_LEN: usize = ELEM_LEN;
Dx25519.rs159 const ELEM_AND_SCALAR_LEN: usize = ops::ELEM_LEN;
/external/rust/crates/ring/src/ec/curve25519/ed25519/
Dverification.rs44 let public_key: &[u8; ELEM_LEN] = public_key.as_slice_less_safe().try_into()?; in verify()
46 let signature_r: &[u8; ELEM_LEN] = input in verify()
47 .read_bytes(ELEM_LEN)? in verify()
Dsigning.rs190 let (signature_bytes, _unused) = signature_bytes.split_at_mut(ELEM_LEN + SCALAR_LEN); in sign()
191 let (signature_r, signature_s) = signature_bytes.split_at_mut(ELEM_LEN); in sign()
260 const SIGNATURE_LEN: usize = ELEM_LEN + SCALAR_LEN;