rscrypto 0.1.0

Rust crypto with zero default deps: BLAKE3, Ed25519/X25519, hashes, MACs, KDFs, AEADs, and checksums with SIMD/ASM acceleration.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::{State, compute_block_x86_avx2};

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