Skip to content

Commit 688e6be

Browse files
committed
fix rc4 test
1 parent 5f92ea4 commit 688e6be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rc4_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ func TestRC4Block(t *testing.T) {
139139
}
140140

141141
func TestRC4OutOfBoundsWrite(t *testing.T) {
142+
if !openssl.SupportsRC4() {
143+
t.Skip("RC4 is not supported")
144+
}
142145
// This cipherText is encrypted "0123456789"
143146
cipherText := []byte{238, 41, 187, 114, 151, 2, 107, 13, 178, 63}
144147
cipher, err := openssl.NewRC4Cipher([]byte{0})

0 commit comments

Comments
 (0)