-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/mcrypt/tests/
File Upload :
Current File : //usr/src/php/ext/mcrypt/tests/bug46010.phpt

--TEST--
Bug #46010 (warnings incorrectly generated for iv in ecb mode)
--SKIPIF--
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
--FILE--
<?php

var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB)));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "a")));
var_dump(bin2hex(mcrypt_encrypt(MCRYPT_TRIPLEDES, "key", "data", MCRYPT_MODE_ECB, "12345678")));

?>
--EXPECTF--
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"
string(16) "372eeb4a524b8d31"

Copyright © 2017 || Recoded By Mr.Bumblebee