2014-08-10 07:01:21 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
|
|
|
* @copyright MMXIV Andreas Fischer
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Unit_Crypt_Hash_SHA256_96Test extends Unit_Crypt_Hash_SHA256Test
|
|
|
|
{
|
|
|
|
public function getInstance()
|
|
|
|
{
|
|
|
|
return new Crypt_Hash('sha256-96');
|
|
|
|
}
|
|
|
|
|
|
|
|
static public function hashData()
|
|
|
|
{
|
|
|
|
$tests = parent::hashData();
|
|
|
|
foreach ($tests as &$test) {
|
|
|
|
$test[1] = substr($test[1], 0, 24);
|
|
|
|
}
|
|
|
|
return $tests;
|
|
|
|
}
|
|
|
|
|
|
|
|
static public function hmacData()
|
|
|
|
{
|
|
|
|
$tests = parent::hashData();
|
|
|
|
foreach ($tests as &$test) {
|
2014-08-10 14:08:52 +00:00
|
|
|
$test[2] = substr($test[2], 0, 24);
|
2014-08-10 07:01:21 +00:00
|
|
|
}
|
|
|
|
return $tests;
|
|
|
|
}
|
|
|
|
}
|