You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's go ahead and implement ChaCha20Poly1305. This is going to be the AEAD construct found in RFC 7539 Section 2.8only.
Where should this live in our source tree? It's very similar to Fernet (but with AAD!). However, it would be hard to explain the benefits/drawbacks between Fernet/ChaCha20Poly1305 so I'm not sure it should live in recipes.
If we create a new cryptography.hazmat.primitives.ciphers.ae module (ae for authenticated encryption, although maybe we should just call it authenticated_encryption?) then we could put it there, although it pains me to call this hazmat when it's actually going to be on par with the safest construct we have.
So that'd be cryptography.hazmat.aead? Do we want to call it AEAD when we might hypothetically implement something that does authenticated encryption sans additional data? I can't think of an example of that outside of a composition like Fernet right now though.
--
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: D1B3 ADC0 E023 8CA6
Activity
alex commentedon Jun 4, 2017
My proposal is an
aeadmodule, inhazmat.reaperhulk commentedon Jun 4, 2017
So that'd be
cryptography.hazmat.aead? Do we want to call it AEAD when we might hypothetically implement something that does authenticated encryption sans additional data? I can't think of an example of that outside of a composition like Fernet right now though.alex commentedon Jun 4, 2017