1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-15 10:27:01 +01:00
tgseclib/tests/Unit/Crypt/Hash/SHA512_96Test.php

31 lines
705 B
PHP
Raw Normal View History

2014-08-10 09:01:21 +02: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_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test
{
public function getInstance()
{
return new Crypt_Hash('sha512-96');
}
2014-08-10 18:52:31 +02:00
/**
* @dataProvider hashData()
*/
public function testHash($message, $longResult)
2014-08-10 09:01:21 +02:00
{
2014-08-10 18:52:31 +02:00
parent::testHash($message, substr($longResult, 0, 24));
2014-08-10 09:01:21 +02:00
}
2014-08-10 18:52:31 +02:00
/**
* @dataProvider hmacData()
*/
public function testHMAC($key, $message, $longResult)
2014-08-10 09:01:21 +02:00
{
parent::testHMAC($key, $message, substr($longResult, 0, 24));
2014-08-10 09:01:21 +02:00
}
}