]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/fips/aes/gcm: add SealWithRandomNonce
authorFilippo Valsorda <filippo@golang.org>
Sun, 3 Nov 2024 21:30:43 +0000 (22:30 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 19 Nov 2024 00:32:04 +0000 (00:32 +0000)
commitb86f770bec70e47a2e61142624975e19b7f69e51
treeaa7e942123a53d9122c49aad6a5a61a8c9ab0b3a
parent2b1a15152457a27f99f08c01c0272871fad3f2b7
crypto/internal/fips/aes/gcm: add SealWithRandomNonce

We don't expose it as an AEAD yet because the logic for that is complex
due to overlap issues. For #69981 we will make a cipher.AEAD wrapper
outside the FIPS module, but maybe a v2 interface will make it easier,
and then we'll be able to use this method more directly.

Updates #69981
For #69536

Change-Id: Id88191c01443b0dec89ff0d6c4a6289f519369d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/624916
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/internal/fips/aes/gcm/ctrkdf_test.go
src/crypto/internal/fips/aes/gcm/gcm_nonces.go [new file with mode: 0644]