mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-02 20:08:29 +00:00
fix bad merge
This commit is contained in:
parent
b44a59091a
commit
5fccc4cada
@ -1,32 +0,0 @@
|
|||||||
<?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_SHA256_96Test extends Unit_Crypt_Hash_SHA256Test
|
|
||||||
{
|
|
||||||
public function getInstance()
|
|
||||||
{
|
|
||||||
return new Hash('sha256-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));
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
<?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));
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user