#aes-gcm #data-stream #encryption #aead #stream-cipher #pure #nonce

aead-gcm-stream

Pure Rust implementaion of AES GCM cipher for data streams

3 releases (breaking)

0.3.0 Aug 28, 2024
0.2.0 Nov 17, 2023
0.1.0 Sep 4, 2023

#698 in Cryptography

Download history 1628/week @ 2024-07-24 1728/week @ 2024-07-31 1621/week @ 2024-08-07 1265/week @ 2024-08-14 1984/week @ 2024-08-21 2265/week @ 2024-08-28 2368/week @ 2024-09-04 1780/week @ 2024-09-11 1955/week @ 2024-09-18 2224/week @ 2024-09-25 2393/week @ 2024-10-02 2930/week @ 2024-10-09 2391/week @ 2024-10-16 2707/week @ 2024-10-23 2127/week @ 2024-10-30 2057/week @ 2024-11-06

9,791 downloads per month
Used in 19 crates (via deno_node)

MIT license

135KB
179 lines

aead-gcm-stream

Pure Rust implementaion of AES GCM cipher for data streams.

image

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();

Dependencies

~780KB
~17K SLoC