Skip to content

Commit

Permalink
Prepare to specialise aes_gcm
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Oct 27, 2024
1 parent f55934d commit 9b02e3b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions graviola/src/low/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0

pub(crate) mod aes;
pub(crate) mod aes_gcm;
pub(crate) mod bignum_add;
pub(crate) mod bignum_add_p256;
pub(crate) mod bignum_add_p384;
Expand Down
4 changes: 1 addition & 3 deletions graviola/src/low/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ mod macros;
pub mod inline_assembly_safety;

mod generic {
#[cfg(target_arch = "aarch64")]
pub(crate) mod aes_gcm;
pub(super) mod blockwise;
#[cfg(target_arch = "aarch64")]
pub(crate) mod chacha20;
Expand Down Expand Up @@ -100,6 +98,7 @@ cfg_if::cfg_if! {

pub(in crate::low) use aarch64::cpu::{enter_cpu_state, zero_bytes, leave_cpu_state, verify_cpu_features};
pub(crate) use aarch64::aes::AesKey;
pub(crate) use aarch64::aes_gcm;
pub(crate) use aarch64::bignum_add::bignum_add;
pub(crate) use aarch64::bignum_add_p256::bignum_add_p256;
pub(crate) use aarch64::bignum_add_p384::bignum_add_p384;
Expand Down Expand Up @@ -153,7 +152,6 @@ cfg_if::cfg_if! {
pub(crate) use aarch64::optimise_barrier::optimise_barrier_u8;

pub(crate) use generic::chacha20;
pub(crate) use generic::aes_gcm;
pub(crate) use generic::sha512::sha512_compress_blocks;
} else {
compile_error!("This crate only supports x86_64 or aarch64");
Expand Down

0 comments on commit 9b02e3b

Please sign in to comment.