Skip to content

Feat: ChaCha20-Poly1305 implementation. #145

Description

@dghgit

This is on the OpenSSL compatibility list.

See https://www.rfc-editor.org/info/rfc8439/ - there's actually a couple of ways to implement ChaCha20 but this is the one that's required (the nonce/counter split is different from the original specification, so be sure to follow the RFC).

OpenSSL implement ChaCha20-Poly1305 as an AEAD cipher and implement Poly1305 separately as a MAC and ChaCha20 separately as a stream cipher. We should probably follow the pattern.

Note: there are also Wycheproof test vectors for this one, in addition to what's in the RFC. Both Bouncy Castle and OpenSSL can also be used to test against.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions