mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 10:01:47 +00:00
Hash: fix unit tests
This commit is contained in:
parent
e3136ccd13
commit
a906e83f2a
@ -25,7 +25,7 @@ class Unit_Crypt_Hash_SHA256_96Test extends Unit_Crypt_Hash_SHA256Test
|
|||||||
{
|
{
|
||||||
$tests = parent::hashData();
|
$tests = parent::hashData();
|
||||||
foreach ($tests as &$test) {
|
foreach ($tests as &$test) {
|
||||||
$test[3] = substr($test[3], 0, 24);
|
$test[3] = substr($test[2], 0, 24);
|
||||||
}
|
}
|
||||||
return $tests;
|
return $tests;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ class Unit_Crypt_Hash_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test
|
|||||||
{
|
{
|
||||||
$tests = parent::hashData();
|
$tests = parent::hashData();
|
||||||
foreach ($tests as &$test) {
|
foreach ($tests as &$test) {
|
||||||
$test[3] = substr($test[3], 0, 24);
|
$test[3] = substr($test[2], 0, 24);
|
||||||
}
|
}
|
||||||
return $tests;
|
return $tests;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user