1
Fork 0
mirror of https://github.com/Steffo99/appunti-magistrali.git synced 2024-12-01 13:44:19 +00:00
appunti-steffo/8 - Crittografia applicata/2 - Comunicazione simmetrica/7 - Implementazioni particolari/2 - Operation framework/deterministic authenticated encryption with associated data.md
2023-09-21 02:46:23 +02:00

474 B

aliases
DAEAD

authenticated encryption with associated data in un operation framework deterministico.

Prevede i seguenti metodi:

trait AuthenticatedEncryptorWithAssociatedData<const KEY_SIZE, Data> {
	fn keygen() -> [u8; KEY_SIZE];
	fn encrypt(key: &[u8; KEY_SIZE], nonce: usize, plaintext: Iterator<u8>, data: Data) -> Iterator<u8>;
	fn decrypt(key: &[u8; KEY_SIZE], nonce: usize, ciphertext: Iterator<u8>, data: Data) -> Iterator<u8>;
}