Skip to content

Add ChaCha20Poly1305 AEAD Construction #3667

Closed

Description

@reaperhulk

Let's go ahead and implement ChaCha20Poly1305. This is going to be the AEAD construct found in RFC 7539 Section 2.8 only.

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.

Activity

  1. added this to the Twentieth release milestone on Jun 4, 2017
  2. alex commented on Jun 4, 2017

    @alex
    Member

    My proposal is an aead module, in hazmat.

  3. reaperhulk commented on Jun 4, 2017

    @reaperhulk
    MemberAuthor

    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.

  4. alex commented on Jun 4, 2017

    @alex
    Member
  5. locked as resolved and limited conversation to collaborators on Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions