mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 03:16:02 +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();
|
||||
foreach ($tests as &$test) {
|
||||
$test[3] = substr($test[3], 0, 24);
|
||||
$test[3] = substr($test[2], 0, 24);
|
||||
}
|
||||
return $tests;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ class Unit_Crypt_Hash_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test
|
||||
{
|
||||
$tests = parent::hashData();
|
||||
foreach ($tests as &$test) {
|
||||
$test[3] = substr($test[3], 0, 24);
|
||||
$test[3] = substr($test[2], 0, 24);
|
||||
}
|
||||
return $tests;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user