invesdwin / invesdwin-context-security

invesdwin-context modules that provide security features
GNU Lesser General Public License v3.0
1 stars 0 forks source link

implement chacha20 with poly1305 in crypto #7

Closed subes closed 1 year ago

subes commented 1 year ago

same as: https://www.wireguard.com/protocol/

subes commented 1 year ago

poly1305 is a MAC: https://en.wikipedia.org/wiki/Poly1305

subes commented 1 year ago

poly1305 added via bouncycastle

subes commented 1 year ago

done

subes commented 1 year ago

no need for salsa20 or xsalsa20 https://github.com/tendermint/tendermint/issues/1124

subes commented 1 year ago

can not use ChaCha20-Poly1305 directly in JCE (combinations seems to be buggy in java), have to keep the algorithms separate to be able to use them together.

https://github.com/invesdwin/invesdwin-context-security/commit/b13e220fc2de838ae942467a01513c77949297d8