Skip to content

Commit

Permalink
Use different cipher in openssl_seal() test
Browse files Browse the repository at this point in the history
RC4 is insecure and not supported in newer versions.
  • Loading branch information
nikic committed Aug 4, 2021
1 parent 0a530d7 commit 046b36b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/openssl/tests/openssl_seal_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $a = 1;
$b = array(1);
$c = array(1);
$d = array(1);
$method = "RC4";
$method = "AES-128-ECB";

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

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

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

0 comments on commit 046b36b

Please sign in to comment.