#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

#597 in Cryptography

Download history 2502/week @ 2024-10-20 2442/week @ 2024-10-27 2078/week @ 2024-11-03 1944/week @ 2024-11-10 2682/week @ 2024-11-17 2286/week @ 2024-11-24 2643/week @ 2024-12-01 3076/week @ 2024-12-08 2876/week @ 2024-12-15 2287/week @ 2024-12-22 1898/week @ 2024-12-29 2562/week @ 2025-01-05 3586/week @ 2025-01-12 2999/week @ 2025-01-19 2993/week @ 2025-01-26 2685/week @ 2025-02-02

12,516 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

~780KB
~17K SLoC