mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* fix EC point padding for 521 bit curves * rename modulus to point in findStartIndexEC as it is a point * simplify matching logic * simplify padding logic * remove comment * remove log removing .only so the CI/CD runs circuit tests fix disclosure test fix scope in test fix scope error in circuit tests remove .only fix test * run ci/cd
56 lines
2.4 KiB
TypeScript
56 lines
2.4 KiB
TypeScript
export const sigAlgs = [
|
|
{ sigAlg: 'rsa', hashFunction: 'sha1', domainParameter: '65537', keyLength: '2048' }, // sha1_rsa_65537_4096
|
|
];
|
|
|
|
export const fullSigAlgs = [
|
|
// RSA
|
|
{ sigAlg: 'rsa', hashFunction: 'sha1', domainParameter: '65537', keyLength: '2048' }, // sha1_rsa_65537_4096
|
|
{ sigAlg: 'rsa', hashFunction: 'sha256', domainParameter: '65537', keyLength: '2048' }, // sha256_rsa_65537_4096
|
|
{ sigAlg: 'rsa', hashFunction: 'sha512', domainParameter: '65537', keyLength: '2048' }, // sha384_rsa_65537_4096
|
|
// RSA-PSS
|
|
{
|
|
sigAlg: 'rsapss',
|
|
hashFunction: 'sha256',
|
|
saltLen: '32',
|
|
domainParameter: '65537',
|
|
keyLength: '3072',
|
|
},
|
|
// {
|
|
// sigAlg: 'rsapss',
|
|
// hashFunction: 'sha256',
|
|
// saltLen: '32',
|
|
// domainParameter: '65537',
|
|
// keyLength: '4096',
|
|
// }, // DSC signed by CSCA using dsc_sha256_rsapss_65537_32_2048.circom, which was removed because not needed.
|
|
// TODO: sign the DSC with a new CSCA
|
|
{
|
|
sigAlg: 'rsapss',
|
|
hashFunction: 'sha512',
|
|
saltLen: '64',
|
|
domainParameter: '65537',
|
|
keyLength: '4096',
|
|
},
|
|
{
|
|
sigAlg: 'rsapss',
|
|
hashFunction: 'sha256',
|
|
saltLen: '32',
|
|
domainParameter: '3',
|
|
keyLength: '3072',
|
|
},
|
|
//ECDSA
|
|
//brainpool
|
|
{ sigAlg: 'ecdsa', hashFunction: 'sha1', domainParameter: 'brainpoolP256r1', keyLength: '256' },
|
|
{ sigAlg: 'ecdsa', hashFunction: 'sha256', domainParameter: 'brainpoolP256r1', keyLength: '256' },
|
|
{ sigAlg: 'ecdsa', hashFunction: 'sha256', domainParameter: 'brainpoolP384r1', keyLength: '384' },
|
|
{ sigAlg: 'ecdsa', hashFunction: 'sha384', domainParameter: 'brainpoolP384r1', keyLength: '384' },
|
|
{ sigAlg: 'ecdsa', hashFunction: 'sha384', domainParameter: 'brainpoolP512r1', keyLength: '512' },
|
|
{ sigAlg: 'ecdsa', hashFunction: 'sha512', domainParameter: 'brainpoolP512r1', keyLength: '512' },
|
|
//secp
|
|
{ sigAlg: 'ecdsa', hashFunction: 'sha1', domainParameter: 'secp256r1', keyLength: '256' },
|
|
{ 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' },
|
|
];
|