mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Fix indent in opnenssl_decrypt tests
This commit is contained in:
parent
e06331931d
commit
dc6ea028b5
2 changed files with 6 additions and 6 deletions
|
@ -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--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue