rscrypto 0.1.1

Pure Rust cryptography, hardware-accelerated: BLAKE3, SHA-2/3, AES-GCM, ChaCha20-Poly1305, Ed25519, X25519, HMAC, HKDF, Argon2, CRC. no_std, WASM, ten CPU architectures.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::{State, compute_block_aarch64_neon};

define_target_feature_forwarder! {
  pub(super) fn compute_block(state: &mut State, block: &[u8; 16], partial: bool) {
    feature = "neon";
    outer_safety = "backend selection guarantees NEON is available before this wrapper is chosen.";
    inner_safety = "this wrapper enables NEON before calling the shared NEON body.";
    call = compute_block_aarch64_neon(state, block, partial);
  }
}