go_chacha20poly1305_openssh/_patches/chacha20_nonce.patch

14 lines
520 B
Diff
Raw Permalink Normal View History

2023-01-10 07:24:12 -05:00
--- a/vendor/golang.org/x/crypto/chacha20/chacha_generic.go 2023-01-09 05:16:30.912219212 -0500
+++ b/vendor/golang.org/x/crypto/chacha20/chacha_generic.go 2023-01-10 02:20:55.150612278 -0500
@@ -24,7 +24,9 @@
//
// Note that this is too short to be safely generated at random if the same
// key is reused more than 2³² times.
- NonceSize = 12
+ //NonceSize = 12
+ // BITE ME, GOLANG DEVS.
+ NonceSize = 16
// NonceSizeX is the size of the nonce used with the XChaCha20 variant of
// this cipher, in bytes.