This commit is contained in:
terrafrost 2016-04-30 16:26:53 -05:00
commit e47af2bd88
2 changed files with 1 additions and 10 deletions

View File

@ -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;

View File

@ -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',