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

aead-gcm-stream

Pure Rust implementaion of AES GCM cipher for data streams

4 releases (breaking)

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

#581 in Cryptography

Download history 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 2092/week @ 2024-11-06 1957/week @ 2024-11-13 2702/week @ 2024-11-20 2532/week @ 2024-11-27 2749/week @ 2024-12-04 3030/week @ 2024-12-11 2805/week @ 2024-12-18 2130/week @ 2024-12-25 1517/week @ 2025-01-01

10,096 downloads per month
Used in 23 crates (via deno_node)

MIT license

135KB
160 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, nonce);

cipher.encrypt(&mut data);

let tag = cipher.final();

Dependencies

~785KB
~17K SLoC