Skip to content

Commit

Permalink
fix bits
Browse files Browse the repository at this point in the history
  • Loading branch information
seshanthS committed Jan 22, 2025
1 parent 0244614 commit 3822288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion circuits/tests/register/test_cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const sigAlgs = [
sigAlg: 'rsapss',
hashFunction: 'sha256',
domainParameter: '3',
keyLength: '3072',
keyLength: '4096',
checkNullifier: true,
},
{
Expand Down
2 changes: 1 addition & 1 deletion common/src/utils/circuitsName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function getCircuitNameFromPassportData(passportData: PassportData) {
const saltLength = (parsedDsc.publicKeyDetails as PublicKeyDetailsRSAPSS).saltLength;
const bits = (parsedDsc.publicKeyDetails as PublicKeyDetailsRSAPSS).bits;
if (parseInt(bits) <= 4096) {
return `register_${dgHashAlgo}_${eContentHashAlgo}_${signedAttrHashAlgo}_${sigAlg}_${exponent}_${saltLength}_${4096}`;
return `register_${dgHashAlgo}_${eContentHashAlgo}_${signedAttrHashAlgo}_${sigAlg}_${exponent}_${saltLength}_${bits}`;
} else {
throw new Error(`Unsupported key length: ${bits}`);
}
Expand Down

0 comments on commit 3822288

Please sign in to comment.