Sean Liao submitted the change![Open in Gerrit]()
Change information
Commit message:
chacha20poly1305: panic on dst and additionalData overlap
The cipher.AEAD interface specifies that these should not overlap.
This mirrors the check that the GCM implementation does.
Fixes golang/go#75968
Updates golang/go#21624
Change-Id: If5fbb8611ff6c0aae44d50079bad29f56ce00f5b
Files:
- M chacha20poly1305/chacha20poly1305_amd64.go
- M chacha20poly1305/chacha20poly1305_generic.go
Change size: S
Delta: 2 files changed, 16 insertions(+), 4 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Daniel McCarney, +1 by David Chase, +2 by Roland Shoemaker
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: crypto
Gerrit-Branch: master
Gerrit-Change-Id: If5fbb8611ff6c0aae44d50079bad29f56ce00f5b
Gerrit-Change-Number: 712860
Gerrit-PatchSet: 2