This repository was archived by the owner on Sep 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.js
61 lines (54 loc) · 1.41 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* @const
* @name CADESCOM_CADES_BES
* @description Signature type CAdES BES
*/
export const CADESCOM_CADES_BES = 1;
/**
* @const
* @name CADESCOM_BASE64_TO_BINARY
* @description Data will reencoded from base64 into binary array
*/
export const CADESCOM_BASE64_TO_BINARY = 1;
/**
* @const
* @name CAPICOM_CERTIFICATE_FIND_SHA1_HASH
* @description Finding certificates by SHA1 hash
*/
export const CAPICOM_CERTIFICATE_FIND_SHA1_HASH = 0;
/**
* @const
* @name CADESCOM_HASH_ALGORITHM_CP_GOST_3411
* @description Algorithm GOST R 34.11-94
*/
export const CADESCOM_HASH_ALGORITHM_CP_GOST_3411 = 100;
/**
* @const
* @name ALGORITHMS
* @description Algorithm GOST R 34.11-94 = 100
* Algorithm GOST R 34.10-2012 256 bit = 101
* Algorithm GOST R 34.10-2012 512 bit = 102
*/
export const ALGORITHMS = {
'ГОСТ Р 34.10-2001': 100,
'ГОСТ Р 34.10-2012 256 бит': 101,
'ГОСТ Р 34.10-2012 512 бит': 102,
};
/**
* @const
* @name CADESCOM_CURRENT_USER_STORE
* @description Finding certificates from a storage of current user
*/
export const CADESCOM_CURRENT_USER_STORE = 2;
/**
* @const
* @name CAPICOM_AUTHENTICATED_ATTRIBUTE_SIGNING_TIME
* @description Time of signing
*/
export const CAPICOM_AUTHENTICATED_ATTRIBUTE_SIGNING_TIME = 0;
/**
* @const
* @name cadesplugin
* @description Provide access to cadesplugin_api
*/
export const { cadesplugin } = window;