#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

#714 in Cryptography

Download history 1510/week @ 2024-08-09 1450/week @ 2024-08-16 2440/week @ 2024-08-23 1968/week @ 2024-08-30 2313/week @ 2024-09-06 1618/week @ 2024-09-13 2351/week @ 2024-09-20 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 1953/week @ 2024-11-22

8,799 downloads per month
Used in 21 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

~785KB
~17K SLoC