Spomky-Labs / php-aes-gcm

AES Galois Counter Mode encryption library for PHP
MIT License
69 stars 23 forks source link

Question: What is $A #10

Closed btxtiger closed 5 years ago

btxtiger commented 5 years ago

Can you please explain what is $A (Additional Authenticated Data)? It is the first time I see this.

Spomky commented 5 years ago

Google explain the AAD concept much better than me.

The aim of AAD is to attach information to the ciphertext. The data is is not encrypted, but is bound to the ciphertext in the sense that it cannot be changed or separated.

btxtiger commented 5 years ago

Thank you