mirror of
https://github.com/crypto-pro-web/crypto-pro-js.git
synced 2024-11-24 00:55:00 +03:00
added verfification
This commit is contained in:
parent
4096e085a1
commit
17e248e495
@ -31,6 +31,7 @@ const executionFlow = {
|
|||||||
propset_ContentEncoding: jest.fn(),
|
propset_ContentEncoding: jest.fn(),
|
||||||
propset_Content: jest.fn(),
|
propset_Content: jest.fn(),
|
||||||
SignCades: jest.fn(() => executionSteps[4]),
|
SignCades: jest.fn(() => executionSteps[4]),
|
||||||
|
VerifyCades: jest.fn(),
|
||||||
CoSignCades: jest.fn(() => executionSteps[5]),
|
CoSignCades: jest.fn(() => executionSteps[5]),
|
||||||
},
|
},
|
||||||
[executionSteps[2]]: {
|
[executionSteps[2]]: {
|
||||||
|
@ -72,6 +72,7 @@ export const addAttachedSignature = _afterPluginsLoaded(
|
|||||||
let signature: string;
|
let signature: string;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
void (__cadesAsyncToken__ + cadesSignedData.VerifyCades(messageBase64, cadesplugin.CADESCOM_PKCS7_TYPE));
|
||||||
signature = __cadesAsyncToken__ + cadesSignedData.CoSignCades(cadesSigner, cadesplugin.CADESCOM_PKCS7_TYPE);
|
signature = __cadesAsyncToken__ + cadesSignedData.CoSignCades(cadesSigner, cadesplugin.CADESCOM_PKCS7_TYPE);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
@ -32,6 +32,7 @@ const executionFlow = {
|
|||||||
propset_ContentEncoding: jest.fn(),
|
propset_ContentEncoding: jest.fn(),
|
||||||
propset_Content: jest.fn(),
|
propset_Content: jest.fn(),
|
||||||
SignHash: jest.fn(() => executionSteps[4]),
|
SignHash: jest.fn(() => executionSteps[4]),
|
||||||
|
VerifyCades: jest.fn(),
|
||||||
CoSignHash: jest.fn(() => executionSteps[6]),
|
CoSignHash: jest.fn(() => executionSteps[6]),
|
||||||
},
|
},
|
||||||
[executionSteps[2]]: {
|
[executionSteps[2]]: {
|
||||||
|
@ -74,6 +74,7 @@ export const addDetachedSignature = _afterPluginsLoaded(
|
|||||||
let signature: string;
|
let signature: string;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
void (__cadesAsyncToken__ + cadesSignedData.VerifyCades(cadesHashedData, cadesplugin.CADESCOM_PKCS7_TYPE));
|
||||||
signature =
|
signature =
|
||||||
__cadesAsyncToken__ +
|
__cadesAsyncToken__ +
|
||||||
cadesSignedData.CoSignHash(cadesHashedData, cadesSigner, cadesplugin.CADESCOM_PKCS7_TYPE);
|
cadesSignedData.CoSignHash(cadesHashedData, cadesSigner, cadesplugin.CADESCOM_PKCS7_TYPE);
|
||||||
|
Loading…
Reference in New Issue
Block a user