initial release. tests pass at least.
This commit is contained in:
13
_patches/chacha20_nonce.patch
Normal file
13
_patches/chacha20_nonce.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- 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.
|
||||
13
_patches/chacha20poly1305_nonce.patch
Normal file
13
_patches/chacha20poly1305_nonce.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- 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.
|
||||
Reference in New Issue
Block a user