Skip to content
Blog » AEAD

AEAD

An Example ECDH Key Exchange with HKDF and Authenticated Encryption in Rust

I recently created an example project which implements an ephemeral key exchange between a client and server over TCP. The program uses the Ring cryptography library to compute a shared secret using the X25519 algorithm. Two session keys are derived from the output of the key exchange using HKDF and… Read More »An Example ECDH Key Exchange with HKDF and Authenticated Encryption in Rust

Authenticated Encryption in Rust using Ring

Authenticated Encryption with Associated Data (AEAD) is a modern cryptography primitive that enables secure encryption and decryption of data using a symmetric key in a way that prevents it from being altered or tampered with. The Ring cryptography library implements the AES-GCM and ChaCha20-Poly1305 authenticated encryption algorithms which are two… Read More »Authenticated Encryption in Rust using Ring