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
#![allow(clippy::indexing_slicing)] // Fixed-size array indexing and block parsing

#[repr(C, align(64))]
pub(crate) struct Aligned64<T>(pub T);

impl<T> core::ops::Deref for Aligned64<T> {
  type Target = T;

  #[inline(always)]
  fn deref(&self) -> &T {
    &self.0
  }
}

#[inline(always)]
pub const fn rotr32(x: u32, n: u32) -> u32 {
  x.rotate_right(n)
}

#[inline(always)]
pub const fn rotr64(x: u64, n: u32) -> u64 {
  x.rotate_right(n)
}