mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 10:38:12 +01:00
31 lines
705 B
PHP
31 lines
705 B
PHP
<?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');
|
|
}
|
|
|
|
/**
|
|
* @dataProvider hashData()
|
|
*/
|
|
public function testHash($message, $longResult)
|
|
{
|
|
parent::testHash($message, substr($longResult, 0, 24));
|
|
}
|
|
|
|
/**
|
|
* @dataProvider hmacData()
|
|
*/
|
|
public function testHMAC($key, $message, $longResult)
|
|
{
|
|
parent::testHMAC($key, $message, substr($longResult, 0, 24));
|
|
}
|
|
}
|