This commit is contained in:
Wade Simmons
2026-06-08 09:43:28 -04:00
parent c7e035479c
commit 37b752bb23
3 changed files with 14 additions and 21 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
//go:build !boringcrypto && !fips140v1.0 && !fips140v1.26
//go:build !boringcrypto
package noiseutil
import (
"github.com/flynn/noise"
"crypto/fips140"
)
// EncryptLockNeeded indicates if calls to Encrypt need a lock
const EncryptLockNeeded = false
var EncryptLockNeeded = fips140.Enabled()
// CipherAESGCM is the standard noise.CipherAESGCM when boringcrypto is not enabled
var CipherAESGCM noise.CipherFunc = noise.CipherAESGCM
// var CipherAESGCM noise.CipherFunc = noise.CipherAESGCM