Skip to content

Commit

Permalink
fix(areion): fix x86_64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
codahale committed Nov 3, 2023
1 parent 452c39c commit c7c2235
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/intrinsics/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ pub fn and(a: AesBlock, b: AesBlock) -> AesBlock {
pub fn enc(state: AesBlock, round_key: AesBlock) -> AesBlock {
unsafe { _mm_aesenc_si128(state, round_key) }
}

/// Perform the last AES round on the given state using the given round key.
#[inline]
pub fn enc_last(state: AesBlock, round_key: AesBlock) -> AesBlock {
unsafe { _mm_aesenclast_si128(state, round_key) }
}

0 comments on commit c7c2235

Please sign in to comment.