diff --git a/device/aead_compat_linux_test.go b/device/aead_compat_linux_test.go index 5dc89b8a0..0af45330e 100644 --- a/device/aead_compat_linux_test.go +++ b/device/aead_compat_linux_test.go @@ -12,5 +12,9 @@ import ( // On Linux, run the shared AEAD compatibility test suite against the // AF_ALG-backed implementation in addition to the Go reference. func init() { + if afalg.SelfTest() != nil { + // Same as [chacha20poly1305New], skip when the kernel module is unavailable. + return + } aeadCtors = append(aeadCtors, aeadCtorEntry{"af_alg", afalg.New}) }