add and fix 521 instances

This commit is contained in:
0xturboblitz
2025-03-08 19:36:03 -08:00
parent 9d403a5355
commit 5cea47e35f
7 changed files with 45 additions and 13 deletions

View File

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

View File

@@ -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',
},
];