Skip to content

Commit ffcfc5c

Browse files
authored
magma: fix typos (#506)
The `typos` CI action recently started complaining about these: https://github.com/RustCrypto/block-ciphers/actions/runs/18258797158/job/51983873161?pr=505 See also: RustCrypto/hashes#741
1 parent f38301b commit ffcfc5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

magma/src/sboxes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ pub(crate) trait SboxExt: Sbox {
4141
fn apply_sbox(a: u32) -> u32 {
4242
let mut v = 0;
4343
for i in 0..4 {
44-
let shft = 8 * i;
45-
let k = ((a & (0xffu32 << shft)) >> shft) as usize;
46-
v += (Self::EXP_SBOX[i][k] as u32) << shft;
44+
let shift = 8 * i;
45+
let k = ((a & (0xffu32 << shift)) >> shift) as usize;
46+
v += (Self::EXP_SBOX[i][k] as u32) << shift;
4747
}
4848
v
4949
}

0 commit comments

Comments
 (0)