Hash: apply fixes to sha512 unit tests as well

This commit is contained in:
terrafrost 2014-08-10 09:14:33 -05:00
parent a52315a0cb
commit 4fa96e384c
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;
}