mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 23:31:00 +00:00
d00e20a140
Conflicts: phpseclib/Crypt/Base.php phpseclib/Net/SCP.php tests/Unit/File/ASN1Test.php
33 lines
729 B
PHP
33 lines
729 B
PHP
<?php
|
|
/**
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
|
* @copyright 2014 Andreas Fischer
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
*/
|
|
|
|
use phpseclib\Crypt\Hash;
|
|
|
|
class Unit_Crypt_Hash_SHA512_96Test extends Unit_Crypt_Hash_SHA512Test
|
|
{
|
|
public function getInstance()
|
|
{
|
|
return new 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));
|
|
}
|
|
}
|