Registry / crypto / aes-gcm-siv

aes-gcm-siv

JSON →
library0.11.1rscratesunverified

Pure Rust implementation of the AES-GCM-SIV misuse-resistant authenticated encryption cipher (RFC 8452) with optional hardware acceleration.

# Cargo.toml [dependencies] aes-gcm-siv = "0.11.1"
INSTALL
IMPORT
SIG · AES-GCM-SIV
A
aes-gcm-siv
cryptorustv0.11.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Aes256GcmSiv
use aes_gcm_siv::Aes256GcmSiv;

Encrypt data using AES-256-GCM-SIV.

use aes_gcm_siv::Aes256GcmSiv; use aes_gcm_siv::aead::{Aead, KeyInit, Nonce}; let key = Aes256GcmSiv::generate_key(&mut rand::rngs::OsRng); let cipher = Aes256GcmSiv::new(&key); let nonce = Nonce::from_slice(b"unique nonce"); let ciphertext = cipher.encrypt(nonce, b"plaintext").unwrap();
Debug
Known issues
gotchaRequires `aes` feature for hardware acceleration on x86
fix
Enable `aes` feature in Cargo.toml: `aes-gcm-siv = { version = "0.11", features = ["aes"] }`
affects: >=0.11.0
Upgrade
Version history
0.11.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
30
Resources
aes-gcm-siv — cargo add aes-gcm-siv · libregistry