Skip to content

Commit 046b36b

Browse files
committed
Use different cipher in openssl_seal() test
RC4 is insecure and not supported in newer versions.
1 parent 0a530d7 commit 046b36b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/openssl/tests/openssl_seal_basic.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $a = 1;
99
$b = array(1);
1010
$c = array(1);
1111
$d = array(1);
12-
$method = "RC4";
12+
$method = "AES-128-ECB";
1313

1414
var_dump(openssl_seal($a, $b, $c, $d, $method));
1515

@@ -41,8 +41,8 @@ var_dump(openssl_seal($data, $sealed, $ekeys, array($wrong), $method));
4141
Warning: openssl_seal(): Not a public key (1th member of pubkeys) in %s on line %d
4242
bool(false)
4343
openssl_seal(): Argument #4 ($public_key) cannot be empty
44-
int(19)
45-
int(19)
44+
int(32)
45+
int(32)
4646

4747
Warning: openssl_seal(): Not a public key (2th member of pubkeys) in %s on line %d
4848
bool(false)

0 commit comments

Comments
 (0)