mirror of
https://github.com/php/php-src.git
synced 2026-03-29 19:52:20 +02:00
Fix indent in opnenssl_decrypt tests
This commit is contained in:
@@ -22,13 +22,13 @@ foreach ($tests as $idx => $test) {
|
||||
|
||||
// no IV
|
||||
var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
|
||||
NULL, $test['tag'], $test['aad']));
|
||||
NULL, $test['tag'], $test['aad']));
|
||||
// failed because no AAD
|
||||
var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
|
||||
$test['iv'], $test['tag']));
|
||||
$test['iv'], $test['tag']));
|
||||
// failed because wrong tag
|
||||
var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
|
||||
$test['iv'], str_repeat('x', 10), $test['aad']));
|
||||
$test['iv'], str_repeat('x', 10), $test['aad']));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
||||
@@ -22,13 +22,13 @@ foreach ($tests as $idx => $test) {
|
||||
|
||||
// no IV
|
||||
var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
|
||||
NULL, $test['tag'], $test['aad']));
|
||||
NULL, $test['tag'], $test['aad']));
|
||||
// failed because no AAD
|
||||
var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
|
||||
$test['iv'], $test['tag']));
|
||||
$test['iv'], $test['tag']));
|
||||
// failed because wrong tag
|
||||
var_dump(openssl_decrypt($test['ct'], $method, $test['key'], OPENSSL_RAW_DATA,
|
||||
$test['iv'], str_repeat('x', 16), $test['aad']));
|
||||
$test['iv'], str_repeat('x', 16), $test['aad']));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
||||
Reference in New Issue
Block a user