nucypher / ferveo

An implementation of a DKG protocol forked from Anoma
https://nucypher.github.io/ferveo/benchmarks/perf/tpke/index.html
GNU General Public License v3.0
5 stars 10 forks source link

Use AAD as input of Chacha20Poly1305.encrypt() #146

Closed cygnusv closed 1 year ago

cygnusv commented 1 year ago

We're currently relying on validating the AAD as part of the TPKE public verifiability function, but not as part of Chacha20Poly1305's properties as an AEAD cipher. That is, as a defense in depth measure, we could include the AAD as input when encrypting & decrypting with Chacha20Poly1305.

See https://docs.rs/aead/0.5.1/aead/struct.Payload.html