Fix typo in Scalar64::from_bytes_wide().

* FIXES issue #82:
   https://github.com/isislovecruft/curve25519-dalek/issues/82
This commit is contained in:
Isis Lovecruft 2017-11-15 03:18:43 +00:00
parent 583a45ddc2
commit 2345a3f2fa
Failed to extract signature

View file

@ -72,7 +72,7 @@ impl Scalar64 {
/// Reduce a 64 byte / 512 bit scalar mod l
pub fn from_bytes_wide(bytes: &[u8; 64]) -> Scalar64 {
let mut words = [064; 8];
let mut words = [0u64; 8];
for i in 0..8 {
for j in 0..8 {
words[i] |= (bytes[(i * 8) + j] as u64) << (j * 8);