Skip to content

Commit

Permalink
Update src/operations.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Liebow-Feeser <[email protected]>
  • Loading branch information
tkaitchuck and joshlf authored Oct 23, 2023
1 parent c6aa1fb commit 2ad2c27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ pub(crate) fn aesenc(value: u128, xor: u128) -> u128 {
use core::arch::aarch64::*;
#[cfg(target_arch = "arm")]
use core::arch::arm::*;
let value = transmute!(value);
let res = unsafe { vaesmcq_u8(vaeseq_u8(value, transmute!(0u128))) };
let res = unsafe { vaesmcq_u8(vaeseq_u8(transmute!(value), transmute!(0u128))) };
let value: u128 = transmute!(res);
xor ^ value
}
Expand Down

0 comments on commit 2ad2c27

Please sign in to comment.