diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/src/lib.rs b/src/lib.rs index f76d920..87d47c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,7 @@ impl AesCipher { for i in (nwords..4 * (rounds + 1)).step_by(nwords) { exp[i] = exp[i - 1]; - exp[i] = rotl!(exp[i], 1); + exp[i] = exp[i].rotate_left(1); exp[i] = Self::sub_sbox(exp[i], &SBOX); exp[i] ^= (RCON[i / nwords - 1] as u32) << 24; exp[i] ^= exp[i - nwords];