pub fn from_bytes(bytes: &[u8; 32]) -> Scalar52 {
        let mut words = [0u64; 4];
        for i in 0..4 {
            for j in 0..8 {
                words[i] |= u64::from(bytes[(i * 8) + j]) << (j * 8) as u64;
            }
        }

        let mask = (1u64 << 52) - 1;
        let top_mask = (1u64 << 48) - 1;
        let mut s = Scalar52::zero();

        s[0] = words[0] & mask;
        s[1] = ((words[0] >> 52) | (words[1] << 12)) & mask;
        s[2] = ((words[1] >> 40) | (words[2] << 24)) & mask;
        s[3] = ((words[2] >> 28) | (words[3] << 36)) & mask;
        s[4] = (words[3] >> 16) & top_mask;

        s
    }
/// Unpack a 32 byte / 256 bit scalar into 5 52-bit limbs.
Unpack a 32 byte / 256 bit scalar into 5 52-bit limbs.
Unpack a 32 byte / 256 bit scalar into 5 52 - bit limbs .
pub fn from_bytes(bytes: &[u8; 32]) -> Scalar52 {
        let mut words = [0u64; 4];
        for i in 0..4 {
            for j in 0..8 {
                words[i] |= u64::from(bytes[(i * 8) + j]) << (j * 8) as u64;
            }
        }
        let mask = (1u64 << 52) - 1;
        let top_mask = (1u64 << 48) - 1;
        let mut s = Scalar52::zero();
        s[0] = words[0] & mask;
        s[1] = ((words[0] >> 52) | (words[1] << 12)) & mask;
        s[2] = ((words[1] >> 40) | (words[2] << 24)) & mask;
        s[3] = ((words[2] >> 28) | (words[3] << 36)) & mask;
        s[4] = (words[3] >> 16) & top_mask;
        s
    }
pub fn from_bytes ( bytes : & [ u8 ; 32 ] ) -> Scalar52 { let mut words = [ 0u64 ; 4 ] ; for i in 0 .. 4 { for j in 0 .. 8 { words [ i ] |= u64 :: from ( bytes [ ( i * 8 ) + j ] ) << ( j * 8 ) as u64 ; } } let mask = ( 1u64 << 52 ) - 1 ; let top_mask = ( 1u64 << 48 ) - 1 ; let mut s = Scalar52 :: zero ( ) ; s [ 0 ] = words [ 0 ] & mask ; s [ 1 ] = ( ( words [ 0 ] >> 52 ) | ( words [ 1 ] << 12 ) ) & mask ; s [ 2 ] = ( ( words [ 1 ] >> 40 ) | ( words [ 2 ] << 24 ) ) & mask ; s [ 3 ] = ( ( words [ 2 ] >> 28 ) | ( words [ 3 ] << 36 ) ) & mask ; s [ 4 ] = ( words [ 3 ] >> 16 ) & top_mask ; s }
Unpack a 32 byte / 256 bit scalar into 5 52-bit limbs.
Unpack a 32 byte / 256 bit scalar into 5 52 - bit limbs .
bytes
&[u8; 32]
bytes
&[u8; 32]