Function salty::agreement::make_255_bit [−][src]
pub fn make_255_bit(bytes: [u8; 32]) -> FieldElement
Expand description
Construct a Scalar
from the low 255 bits of a 256-bit integer.
This function is intended for applications like X25519 which require specific bit-patterns when performing scalar multiplication.