better check

This commit is contained in:
Wade Simmons
2026-06-01 11:24:09 -04:00
parent 56a09b7cbb
commit cf5d73d625
+2 -1
View File
@@ -1,6 +1,7 @@
package noiseutil
import (
"crypto/fips140"
"testing"
"github.com/flynn/noise"
@@ -22,7 +23,7 @@ func TestNewCipherStateDispatch(t *testing.T) {
encA, _ := buildCipherStates(t, CipherAESGCM)
encC, _ := buildCipherStates(t, noise.CipherChaChaPoly)
if !EncryptLockNeeded {
if !fips140.Enabled() {
assert.IsType(t, &CipherStateAESGCM{}, NewCipherState(encA, CipherAESGCM))
} else {
// fips140