#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

#582 in Cryptography

Download history 2079/week @ 2024-09-27 2864/week @ 2024-10-04 2613/week @ 2024-10-11 2316/week @ 2024-10-18 2652/week @ 2024-10-25 2240/week @ 2024-11-01 1910/week @ 2024-11-08 2387/week @ 2024-11-15 2329/week @ 2024-11-22 2571/week @ 2024-11-29 3158/week @ 2024-12-06 2766/week @ 2024-12-13 2346/week @ 2024-12-20 2201/week @ 2024-12-27 2235/week @ 2025-01-03 2637/week @ 2025-01-10

9,907 downloads per month
Used in 24 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