Crate chacha20poly1305_nostd

Crate chacha20poly1305_nostd 

Source
Expand description

ChaCha20-Poly1305 Authenticated Encryption with Associated Data (AEAD)

Pure-Rust implementation combining:

  • ChaCha20 stream cipher (encryption)
  • Poly1305 MAC (authentication)

This is a custom implementation to avoid LLVM SIMD issues on x86_64-unknown-none.

Properties:

  • 256-bit key, 96-bit nonce
  • 128-bit authentication tag
  • Constant-time operations
  • ~4 cycles/byte on modern x86_64

Used by:

  • WireGuard: Transport data encryption
  • SSH: chacha20-poly1305@openssh.com cipher

Structs§

ChaCha20Poly1305
ChaCha20-Poly1305 AEAD cipher

Enums§

CryptoError
Cryptographic error types

Constants§

CHACHA20_KEY_SIZE
Key size for ChaCha20-Poly1305 (32 bytes)
CHACHA20_NONCE_SIZE
Nonce size for ChaCha20-Poly1305 (12 bytes)
POLY1305_TAG_SIZE
Authentication tag size (16 bytes)

Type Aliases§

CryptoResult