mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Fix typo in Scalar64::from_bytes_wide().
* FIXES issue #82: https://github.com/isislovecruft/curve25519-dalek/issues/82
This commit is contained in:
parent
583a45ddc2
commit
2345a3f2fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue