diff options
| author | Stanislav Malyshev <stas@php.net> | 2020-09-28 21:42:19 -0700 |
|---|---|---|
| committer | Derick Rethans <github@derickrethans.nl> | 2020-09-29 10:59:18 +0100 |
| commit | d99c01953528dac2b16b6831e08055cd28ef8c21 (patch) | |
| tree | 1c68d03aa3cd892418b6a8012530ee0b80275be2 /ext/openssl/tests/cipher_tests.inc | |
| parent | e88dcdcdc86852bb5688afec05821a799bd3ad0d (diff) | |
| download | php-git-d99c01953528dac2b16b6831e08055cd28ef8c21.tar.gz | |
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Update UPGRADING
Update NEWS & UPGRADING
Do not decode cookie names anymore
Fix bug #79601 (Wrong ciphertext/tag in AES-CCM encryption for a 12 bytes IV)
Diffstat (limited to 'ext/openssl/tests/cipher_tests.inc')
| -rw-r--r-- | ext/openssl/tests/cipher_tests.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/openssl/tests/cipher_tests.inc b/ext/openssl/tests/cipher_tests.inc index b1e46b411e..779bfa8515 100644 --- a/ext/openssl/tests/cipher_tests.inc +++ b/ext/openssl/tests/cipher_tests.inc @@ -1,5 +1,26 @@ <?php $php_openssl_cipher_tests = array( + 'aes-128-ccm' => array( + array( + 'key' => '404142434445464748494a4b4c4d4e4f', + 'iv' => '1011121314151617', + 'aad' => '000102030405060708090a0b0c0d0e0f', + 'tag' => '1fc64fbfaccd', + 'pt' => '202122232425262728292a2b2c2d2e2f', + 'ct' => 'd2a1f0e051ea5f62081a7792073d593d', + ), + array( + 'key' => '404142434445464748494a4b4c4d4e4f', + 'iv' => '101112131415161718191a1b', + 'aad' => '000102030405060708090a0b0c0d0e0f' . + '10111213', + 'tag' => '484392fbc1b09951', + 'pt' => '202122232425262728292a2b2c2d2e2f' . + '3031323334353637', + 'ct' => 'e3b201a9f5b71a7a9b1ceaeccd97e70b' . + '6176aad9a4428aa5', + ), + ), 'aes-256-ccm' => array( array( 'key' => '1bde3251d41a8b5ea013c195ae128b21' . |
