taoensso / tempel

Data security framework for Clojure
https://www.taoensso.com/tempel
Eclipse Public License 1.0
125 stars 2 forks source link

Add support for ChaCha20-Poly1305 AEAD #1

Closed iarenaza closed 9 months ago

iarenaza commented 10 months ago

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)

ptaoussanis commented 10 months ago

@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.

ptaoussanis commented 9 months ago

Closing, PR was merged manually 👍