go_chacha20poly1305_openssh/_patches/chacha20poly1305_nonce.patch

14 lines
548 B
Diff

--- a/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305.go 2023-01-09 05:16:30.912219212 -0500
+++ b/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305.go 2023-01-10 02:58:31.006536303 -0500
@@ -21,7 +21,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-Poly1305
// variant of this AEAD, in bytes.