PATH:
opt
/
alt
/
tests
/
alt-php80-pecl-mcrypt_1.0.7-1.el8
/
tests
--TEST-- Bug #43143 (Warning about empty IV with MCRYPT_MODE_ECB) --SKIPIF-- <?php if (!extension_loaded("mcrypt")) print "skip"; if (!extension_loaded("hash")) print "skip"; ?> --FILE-- <?php echo "ECB\n"; $input = 'to be encrypted'; $mkey = hash('sha256', 'secret key', TRUE); $data = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $mkey, $input, MCRYPT_MODE_ECB); echo "CFB\n"; $input = 'to be encrypted'; $mkey = hash('sha256', 'secret key', TRUE); $data = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $mkey, $input, MCRYPT_MODE_CFB); echo "END\n"; ?> --EXPECTF-- ECB Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug43143.php on line 5 CFB Deprecated: Function mcrypt_encrypt() is deprecated in %s%ebug43143.php on line 9 Warning: mcrypt_encrypt(): Encryption mode requires an initialization vector of size 32 in %sbug43143.php on line 9 END
[-] mcrypt_get_block_size.phpt
[edit]
[-] mcrypt_enc_is_block_algorithm_mode.phpt
[edit]
[-] mcrypt_enc_get_supported_key_sizes.phpt
[edit]
[-] mcrypt_get_iv_size.phpt
[edit]
[-] mcrypt_rijndael128_128BitKey.phpt
[edit]
[-] mcrypt_create_iv.phpt
[edit]
[-] mcrypt_module_is_block_mode.phpt
[edit]
[-] mcrypt_rijndael128_256BitKey.phpt
[edit]
[-] bug8040.phpt
[edit]
[-] mcrypt_enc_get_block_size.phpt
[edit]
[-] mcrypt_module_get_supported_key_sizes.phpt
[edit]
[-] mcrypt_list_modes.phpt
[edit]
[-] mcrypt_enc_get_key_size.phpt
[edit]
[-] mcrypt_enc_get_algorithms_name.phpt
[edit]
[-] mcrypt_encrypt_3des_ecb.phpt
[edit]
[-] blowfish.phpt
[edit]
[-] mcrypt_enc_is_block_mode.phpt
[edit]
[-] mcrypt_module_self_test.phpt
[edit]
[-] mcrypt_ecb_3des_decrypt.phpt
[edit]
[-] mcrypt_filters.phpt
[edit]
[-] mcrypt_ecb_3des_encrypt.phpt
[edit]
[-] mcrypt_decrypt.phpt
[edit]
[-] mcrypt_get_key_size.phpt
[edit]
[-] mcrypt_cbc.phpt
[edit]
[-] mcrypt_module_open.phpt
[edit]
[-] mcrypt_module_is_block_algorithm_mode.phpt
[edit]
[-] bug70625.phpt
[edit]
[-] bug41252.phpt
[edit]
[-] mcrypt_list_algorithms.phpt
[edit]
[-] mcrypt_ofb.phpt
[edit]
[-] mcrypt_decrypt_3des_ecb.phpt
[edit]
[-] vectors.txt
[edit]
[+]
..
[-] mcrypt_cbc_3des_decrypt.phpt
[edit]
[-] mcrypt_enc_get_iv_size.phpt
[edit]
[-] mcrypt_cfb.phpt
[edit]
[-] bug55169.phpt
[edit]
[-] mcrypt_ecb.phpt
[edit]
[-] mcrypt_module_get_algo_key_size.phpt
[edit]
[-] mcrypt_enc_get_mode_name.phpt
[edit]
[-] bug46010.phpt
[edit]
[-] mcrypt_encrypt_3des_cbc.phpt
[edit]
[-] mcrypt_decrypt_3des_cbc.phpt
[edit]
[-] bug35496.phpt
[edit]
[-] bug49738.phpt
[edit]
[-] mcrypt_module_get_algo_block_size.phpt
[edit]
[-] mcrypt_enc_self_test.phpt
[edit]
[-] mcrypt_module_is_block_algorithm.phpt
[edit]
[-] mcrypt_enc_is_block_algorithm.phpt
[edit]
[-] bug37595.phpt
[edit]
[-] mcrypt_cbc_3des_encrypt.phpt
[edit]
[-] mcrypt_get_cipher_name.phpt
[edit]
[-] bug43143.phpt
[edit]