boringcrypto cleanup

This commit is contained in:
Wade Simmons
2026-06-09 13:24:59 -04:00
parent cb9547b6a1
commit 3b30526379
7 changed files with 17 additions and 111 deletions
+2 -3
View File
@@ -1,5 +1,3 @@
//go:build !boringcrypto
package noiseutil
import (
@@ -17,7 +15,8 @@ import (
// - https://github.com/golang/go/issues/73110
// - https://github.com/golang/go/issues/79219
// Using tls.aeadAESGCMTLS13 gives us the TLS 1.3 GCM, which also verifies
// that the nonce is strictly increasing.
// that the nonce is strictly increasing. This works for both boringcrypto
// and fips140.
//
//go:linkname aeadAESGCMTLS13 crypto/tls.aeadAESGCMTLS13
func aeadAESGCMTLS13(key, noncePrefix []byte) cipher.AEAD