mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
switch rsa_verifier to a n,k = 121,17
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user