#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

#652 in Cryptography

Download history 2545/week @ 2024-10-26 2031/week @ 2024-11-02 1898/week @ 2024-11-09 2672/week @ 2024-11-16 2236/week @ 2024-11-23 2617/week @ 2024-11-30 3187/week @ 2024-12-07 2790/week @ 2024-12-14 2305/week @ 2024-12-21 2019/week @ 2024-12-28 2424/week @ 2025-01-04 3602/week @ 2025-01-11 2915/week @ 2025-01-18 3044/week @ 2025-01-25 2745/week @ 2025-02-01 2152/week @ 2025-02-08

11,534 downloads per month
Used in 28 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