#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

#1011 in Cryptography

Download history 1539/week @ 2024-01-06 1659/week @ 2024-01-13 1637/week @ 2024-01-20 2131/week @ 2024-01-27 1899/week @ 2024-02-03 1924/week @ 2024-02-10 1785/week @ 2024-02-17 1745/week @ 2024-02-24 2045/week @ 2024-03-02 2126/week @ 2024-03-09 1763/week @ 2024-03-16 1866/week @ 2024-03-23 2573/week @ 2024-03-30 1817/week @ 2024-04-06 2101/week @ 2024-04-13 1558/week @ 2024-04-20

8,268 downloads per month
Used in 10 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