Diff for /embedaddon/php/ext/openssl/tests/openssl_decrypt_error.phpt between versions 1.1 and 1.1.1.2

version 1.1, 2012/02/21 23:47:59 version 1.1.1.2, 2012/05/29 12:34:36
Line 12  $iv = str_repeat("\0", openssl_cipher_iv_length($metho Line 12  $iv = str_repeat("\0", openssl_cipher_iv_length($metho
   
 $encrypted = openssl_encrypt($data, $method, $password);  $encrypted = openssl_encrypt($data, $method, $password);
 var_dump($encrypted); /* Not passing $iv should be the same as all-NULL iv, but with a warning */  var_dump($encrypted); /* Not passing $iv should be the same as all-NULL iv, but with a warning */
var_dump(openssl_encrypt($data, $method, $password, false, $iv)); var_dump(openssl_encrypt($data, $method, $password, 0, $iv)); 
 var_dump(openssl_decrypt($encrypted, $method, $wrong));  var_dump(openssl_decrypt($encrypted, $method, $wrong));
 var_dump(openssl_decrypt($encrypted, $wrong, $password));  var_dump(openssl_decrypt($encrypted, $wrong, $password));
 var_dump(openssl_decrypt($wrong, $method, $password));  var_dump(openssl_decrypt($wrong, $method, $password));

Removed from v.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>