Crates.io | aead-gcm-stream |
lib.rs | aead-gcm-stream |
version | 0.3.0 |
source | src |
created_at | 2023-09-04 02:58:04.232004 |
updated_at | 2024-08-28 11:43:51.413246 |
description | Pure Rust implementaion of AES GCM cipher for data streams |
homepage | |
repository | |
max_upload_size | |
id | 962582 |
size | 335,307 |
Pure Rust implementaion of AES GCM cipher for data streams.
use aead_gcm_stream::AesGcm;
use aes::Aes128;
let mut cipher = AesGcm::<Aes128>::new(&key);
cipher.init(nonce);
cipher.encrypt(&mut data);
let tag = cipher.final();