taoensso/tempel

Add support for ChaCha20-Poly1305 AEAD

iarenaza opened this issue · 2 comments

Support for ChaCha20-Poly1305 was added in JDK 11 in 2018 (https://openjdk.org/jeps/329). It's a very popular alternative to AES-GCM, due to its performance [1], and the fact that its used in a lot of security network protocols and tools[2].

[1] Faster than AEC-GCM without hardware AES acceleration, and similar or better performace in multi-core machines even with AES hardware acceleration; see https://en.wikipedia.org/wiki/ChaCha20-Poly1305#Performance
[2] IPSec, TLS 1.2, DTLS 1.2, TLS 1.3, Wireguard, OTRv4 and multipe other protocols (according to https://en.wikipedia.org/wiki/ChaCha20-Poly1305#Use)

@iarenaza Thanks Iñaki, the linked references are especially helpful 👍

PR welcome in case you or someone else felt like submitting one, otherwise I'll take a look at this myself next time I'm on batched Tempel work.

Closing, PR was merged manually 👍