diff --git a/tls/src/crypto/aes/ghash.rs b/tls/src/crypto/aes/ghash.rs index 6c90b726..76a429c9 100644 --- a/tls/src/crypto/aes/ghash.rs +++ b/tls/src/crypto/aes/ghash.rs @@ -235,7 +235,7 @@ fn rev32(mut x: u32) -> u32 { x = ((x & 0x3333_3333) << 2) | (x >> 2 & 0x3333_3333); x = ((x & 0x0f0f_0f0f) << 4) | (x >> 4 & 0x0f0f_0f0f); x = ((x & 0x00ff_00ff) << 8) | (x >> 8 & 0x00ff_00ff); - (x << 16) | (x >> 16) + x.rotate_right(16) } #[cfg(test)]