diff --git a/noiseutil/cipher_state_test.go b/noiseutil/cipher_state_test.go index d93f2b12..9695b895 100644 --- a/noiseutil/cipher_state_test.go +++ b/noiseutil/cipher_state_test.go @@ -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