mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 19:21:09 +00:00
Hash: apply fixes to sha512 unit tests as well
This commit is contained in:
parent
a52315a0cb
commit
4fa96e384c
@ -23,7 +23,7 @@ class Unit_Crypt_Hash_SHA256_96Test extends Unit_Crypt_Hash_SHA256Test
|
||||
|
||||
static public function hmacData()
|
||||
{
|
||||
$tests = parent::hashData();
|
||||
$tests = parent::hmacData();
|
||||
foreach ($tests as &$test) {
|
||||
$test[2] = substr($test[2], 0, 24);
|
||||
}
|
||||
|
@ -23,9 +23,9 @@ class Unit_Crypt_Hash_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test
|
||||
|
||||
static public function hmacData()
|
||||
{
|
||||
$tests = parent::hashData();
|
||||
$tests = parent::hmacData();
|
||||
foreach ($tests as &$test) {
|
||||
$test[3] = substr($test[2], 0, 24);
|
||||
$test[2] = substr($test[2], 0, 24);
|
||||
}
|
||||
return $tests;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user