#data-stream #aes-gcm #encryption #aead #pure #nonce #implementaion

aead-gcm-stream

Pure Rust implementaion of AES GCM cipher for data streams

2 unstable releases

0.2.0 Nov 17, 2023
0.1.0 Sep 4, 2023

#1064 in Cryptography

Download history 2061/week @ 2024-01-29 1964/week @ 2024-02-05 1840/week @ 2024-02-12 1753/week @ 2024-02-19 1994/week @ 2024-02-26 1922/week @ 2024-03-04 2013/week @ 2024-03-11 1861/week @ 2024-03-18 1886/week @ 2024-03-25 2527/week @ 2024-04-01 1932/week @ 2024-04-08 1983/week @ 2024-04-15 1806/week @ 2024-04-22 2541/week @ 2024-04-29 2271/week @ 2024-05-06 2317/week @ 2024-05-13

9,066 downloads per month
Used in 11 crates (via deno_node)

MIT license

135KB
130 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

~770KB
~17K SLoC