diff --git a/Cargo.toml b/Cargo.toml index 6bcbee6..715d885 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,5 +3,5 @@ description = "An implementation of the FIPS-202-defined SHA-3 and SHAKE functio homepage = "https://github.com/debris/tiny-keccak" license = "CC0-1.0" name = "tiny-keccak" -version = "1.0.0" +version = "1.0.1" authors = ["debris "] diff --git a/src/lib.rs b/src/lib.rs index 4e63018..57cfee7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,8 @@ pub fn keccakf(a: &mut [u64]) { x = 0; REPEAT24!({ b[0] = a[PI[x]]; - a[PI[x]] = ROL!(t, RHO[x]); + let rhox = RHO[x]; // 'const_indexing' issue + a[PI[x]] = ROL!(t, rhox); t = b[0]; x += 1; });