mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-10 07:40:58 +00:00
Merge branch 'master' of https://github.com/phpseclib/phpseclib
This commit is contained in:
commit
e47af2bd88
@ -180,6 +180,7 @@ class Hash
|
|||||||
case 'sha1':
|
case 'sha1':
|
||||||
$this->length = 20;
|
$this->length = 20;
|
||||||
break;
|
break;
|
||||||
|
case 'sha224':
|
||||||
case 'sha512/224':
|
case 'sha512/224':
|
||||||
$this->length = 28;
|
$this->length = 28;
|
||||||
break;
|
break;
|
||||||
|
@ -90,16 +90,6 @@ class Unit_Crypt_HashTest extends PhpseclibTestCase
|
|||||||
'The quick brown fox jumps over the lazy dog.',
|
'The quick brown fox jumps over the lazy dog.',
|
||||||
'87a7ff096082e3ffeb86db10feb91c5af36c2c71bc426fe310ce662e0338223e217def0eab0b02b80eecf875657802bc5965e48f5c0a05467756f0d3f396faba'
|
'87a7ff096082e3ffeb86db10feb91c5af36c2c71bc426fe310ce662e0338223e217def0eab0b02b80eecf875657802bc5965e48f5c0a05467756f0d3f396faba'
|
||||||
),
|
),
|
||||||
array(
|
|
||||||
'whirlpool',
|
|
||||||
'The quick brown fox jumps over the lazy dog.',
|
|
||||||
'87a7ff096082e3ffeb86db10feb91c5af36c2c71bc426fe310ce662e0338223e217def0eab0b02b80eecf875657802bc5965e48f5c0a05467756f0d3f396faba'
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
'whirlpool',
|
|
||||||
'The quick brown fox jumps over the lazy dog.',
|
|
||||||
'87a7ff096082e3ffeb86db10feb91c5af36c2c71bc426fe310ce662e0338223e217def0eab0b02b80eecf875657802bc5965e48f5c0a05467756f0d3f396faba'
|
|
||||||
),
|
|
||||||
// from http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA512_224.pdf
|
// from http://csrc.nist.gov/groups/ST/toolkit/documents/Examples/SHA512_224.pdf
|
||||||
array(
|
array(
|
||||||
'sha512/224',
|
'sha512/224',
|
||||||
|
Loading…
Reference in New Issue
Block a user