switch rsa_verifier to a n,k = 121,17

This commit is contained in:
turnoffthiscomputer
2024-07-18 16:06:17 +02:00
parent 986bbeb8d2
commit b8dd408c49
8 changed files with 19 additions and 17 deletions

View File

@@ -46,6 +46,8 @@ describe('RSA Verifier', function () {
mock_dsc_sha256_rsa_2048,
mock_csca_sha256_rsa_2048
);
const n = 121;
const k = 17;
it('should verify DSC has been signed by the CSCA', () => {
const isVerified = dscCert.verify(cscaCert.publicKey);
@@ -58,14 +60,14 @@ describe('RSA Verifier', function () {
'0',
dscCert_forge,
cscaCert_forge,
64,
32,
64,
32,
n,
k,
n,
k,
2048,
true
);
const tbsCertificateHashFormatted = getTBSHash(dscCert_forge, 'sha256');
const tbsCertificateHashFormatted = getTBSHash(dscCert_forge, 'sha256', n, k);
const inputs = {
message: tbsCertificateHashFormatted,