mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
add and fix 521 instances
This commit is contained in:
@@ -49,4 +49,9 @@ export const fullSigAlgs = [
|
||||
{ sigAlg: 'ecdsa', hashFunction: 'sha256', domainParameter: 'secp256r1', keyLength: '256' },
|
||||
{ sigAlg: 'ecdsa', hashFunction: 'sha256', domainParameter: 'secp384r1', keyLength: '384' },
|
||||
{ sigAlg: 'ecdsa', hashFunction: 'sha384', domainParameter: 'secp384r1', keyLength: '384' },
|
||||
{ sigAlg: 'ecdsa', hashFunction: 'sha256', domainParameter: 'secp521r1', keyLength: '521' },
|
||||
{ sigAlg: 'ecdsa', hashFunction: 'sha512', domainParameter: 'secp521r1', keyLength: '521' },
|
||||
// this last one does not pass right now but only because of the issue
|
||||
// of the function that selects the position of the pubkey in ecdsa certs
|
||||
// sometimes being off by one
|
||||
];
|
||||
|
||||
@@ -17,16 +17,8 @@ export const sigAlgs: TestCase[] = [
|
||||
sigAlg: 'rsapss',
|
||||
domainParameter: '65537',
|
||||
keyLength: '2048',
|
||||
saltLength: '64' // Denmark case
|
||||
saltLength: '64' // Denmark
|
||||
},
|
||||
// {
|
||||
// dgHashAlgo: 'sha512',
|
||||
// eContentHashAlgo: 'sha512',
|
||||
// hashFunction: 'sha512',
|
||||
// sigAlg: 'ecdsa',
|
||||
// domainParameter: 'secp521r1',
|
||||
// keyLength: '521',
|
||||
// }, // same problem as other 521s
|
||||
];
|
||||
|
||||
export const fullSigAlgs: TestCase[] = [
|
||||
@@ -88,6 +80,15 @@ export const fullSigAlgs: TestCase[] = [
|
||||
domainParameter: '65537',
|
||||
keyLength: '2048',
|
||||
},
|
||||
{
|
||||
dgHashAlgo: 'sha256',
|
||||
eContentHashAlgo: 'sha256',
|
||||
hashFunction: 'sha256',
|
||||
sigAlg: 'rsapss',
|
||||
domainParameter: '65537',
|
||||
keyLength: '2048',
|
||||
saltLength: '64' // Denmark
|
||||
},
|
||||
{
|
||||
dgHashAlgo: 'sha256',
|
||||
eContentHashAlgo: 'sha256',
|
||||
@@ -203,4 +204,12 @@ export const fullSigAlgs: TestCase[] = [
|
||||
domainParameter: 'secp384r1',
|
||||
keyLength: '384',
|
||||
},
|
||||
{
|
||||
dgHashAlgo: 'sha512',
|
||||
eContentHashAlgo: 'sha512',
|
||||
hashFunction: 'sha512',
|
||||
sigAlg: 'ecdsa',
|
||||
domainParameter: 'secp521r1',
|
||||
keyLength: '521',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user