@protontech/openpgp 4.10.8 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +311 -239
- package/dist/lightweight/bn.interface.min.mjs +3 -0
- package/dist/lightweight/bn.interface.min.mjs.map +1 -0
- package/dist/lightweight/bn.interface.mjs +340 -0
- package/dist/lightweight/bn.min.mjs +3 -0
- package/dist/lightweight/bn.min.mjs.map +1 -0
- package/dist/lightweight/bn.mjs +3434 -0
- package/dist/lightweight/elliptic.min.mjs +3 -0
- package/dist/lightweight/elliptic.min.mjs.map +1 -0
- package/dist/lightweight/elliptic.mjs +4313 -0
- package/dist/lightweight/openpgp.min.mjs +3 -0
- package/dist/lightweight/openpgp.min.mjs.map +1 -0
- package/dist/lightweight/openpgp.mjs +31375 -0
- package/dist/lightweight/ponyfill.es6.min.mjs +3 -0
- package/dist/lightweight/ponyfill.es6.min.mjs.map +1 -0
- package/dist/lightweight/ponyfill.es6.mjs +3831 -0
- package/dist/lightweight/web-streams-adapter.min.mjs +17 -0
- package/dist/lightweight/web-streams-adapter.min.mjs.map +1 -0
- package/dist/lightweight/web-streams-adapter.mjs +561 -0
- package/dist/node/openpgp.js +43943 -0
- package/dist/node/openpgp.min.js +17 -0
- package/dist/node/openpgp.min.js.map +1 -0
- package/dist/node/openpgp.min.mjs +17 -0
- package/dist/node/openpgp.min.mjs.map +1 -0
- package/dist/node/openpgp.mjs +43880 -0
- package/dist/openpgp.js +41077 -41609
- package/dist/openpgp.min.js +17 -2
- package/dist/openpgp.min.js.map +1 -0
- package/dist/openpgp.min.mjs +17 -0
- package/dist/openpgp.min.mjs.map +1 -0
- package/dist/openpgp.mjs +43868 -0
- package/lightweight/package.json +5 -0
- package/openpgp.d.ts +889 -0
- package/package.json +63 -57
- package/dist/compat/openpgp.js +0 -61152
- package/dist/compat/openpgp.min.js +0 -2
- package/dist/compat/openpgp.worker.js +0 -173
- package/dist/compat/openpgp.worker.min.js +0 -2
- package/dist/lightweight/elliptic.min.js +0 -5
- package/dist/lightweight/openpgp.js +0 -40071
- package/dist/lightweight/openpgp.min.js +0 -2
- package/dist/lightweight/openpgp.worker.js +0 -173
- package/dist/lightweight/openpgp.worker.min.js +0 -2
- package/dist/openpgp.worker.js +0 -173
- package/dist/openpgp.worker.min.js +0 -2
- package/src/cleartext.js +0 -220
- package/src/config/config.js +0 -232
- package/src/config/index.js +0 -7
- package/src/config/localStorage.js +0 -35
- package/src/crypto/aes_kw.js +0 -153
- package/src/crypto/cfb.js +0 -169
- package/src/crypto/cipher/aes.js +0 -27
- package/src/crypto/cipher/blowfish.js +0 -398
- package/src/crypto/cipher/cast5.js +0 -610
- package/src/crypto/cipher/des.js +0 -476
- package/src/crypto/cipher/index.js +0 -91
- package/src/crypto/cipher/twofish.js +0 -346
- package/src/crypto/cmac.js +0 -98
- package/src/crypto/crypto.js +0 -394
- package/src/crypto/eax.js +0 -172
- package/src/crypto/gcm.js +0 -141
- package/src/crypto/hash/index.js +0 -163
- package/src/crypto/hash/md5.js +0 -205
- package/src/crypto/index.js +0 -57
- package/src/crypto/ocb.js +0 -274
- package/src/crypto/pkcs1.js +0 -170
- package/src/crypto/pkcs5.js +0 -55
- package/src/crypto/public_key/dsa.js +0 -188
- package/src/crypto/public_key/elgamal.js +0 -137
- package/src/crypto/public_key/elliptic/curves.js +0 -385
- package/src/crypto/public_key/elliptic/ecdh.js +0 -414
- package/src/crypto/public_key/elliptic/ecdsa.js +0 -348
- package/src/crypto/public_key/elliptic/eddsa.js +0 -119
- package/src/crypto/public_key/elliptic/index.js +0 -34
- package/src/crypto/public_key/elliptic/indutnyKey.js +0 -85
- package/src/crypto/public_key/index.js +0 -28
- package/src/crypto/public_key/prime.js +0 -275
- package/src/crypto/public_key/rsa.js +0 -597
- package/src/crypto/random.js +0 -145
- package/src/crypto/signature.js +0 -137
- package/src/encoding/armor.js +0 -433
- package/src/encoding/base64.js +0 -96
- package/src/enums.js +0 -493
- package/src/hkp.js +0 -89
- package/src/index.js +0 -161
- package/src/key/factory.js +0 -326
- package/src/key/helper.js +0 -378
- package/src/key/index.js +0 -32
- package/src/key/key.js +0 -888
- package/src/key/subkey.js +0 -187
- package/src/key/user.js +0 -230
- package/src/keyring/index.js +0 -12
- package/src/keyring/keyring.js +0 -229
- package/src/keyring/localstore.js +0 -119
- package/src/lightweight_helper.js +0 -26
- package/src/message.js +0 -825
- package/src/openpgp.js +0 -717
- package/src/packet/all_packets.js +0 -116
- package/src/packet/clone.js +0 -189
- package/src/packet/compressed.js +0 -194
- package/src/packet/index.js +0 -20
- package/src/packet/literal.js +0 -168
- package/src/packet/marker.js +0 -62
- package/src/packet/one_pass_signature.js +0 -156
- package/src/packet/packet.js +0 -300
- package/src/packet/packetlist.js +0 -232
- package/src/packet/public_key.js +0 -280
- package/src/packet/public_key_encrypted_session_key.js +0 -161
- package/src/packet/public_subkey.js +0 -44
- package/src/packet/secret_key.js +0 -468
- package/src/packet/secret_subkey.js +0 -41
- package/src/packet/signature.js +0 -786
- package/src/packet/sym_encrypted_aead_protected.js +0 -189
- package/src/packet/sym_encrypted_integrity_protected.js +0 -139
- package/src/packet/sym_encrypted_session_key.js +0 -204
- package/src/packet/symmetrically_encrypted.js +0 -118
- package/src/packet/trust.js +0 -35
- package/src/packet/user_attribute.js +0 -94
- package/src/packet/userid.js +0 -87
- package/src/polyfills.js +0 -64
- package/src/signature.js +0 -73
- package/src/type/ecdh_symkey.js +0 -69
- package/src/type/kdf_params.js +0 -114
- package/src/type/keyid.js +0 -110
- package/src/type/mpi.js +0 -138
- package/src/type/oid.js +0 -110
- package/src/type/s2k.js +0 -203
- package/src/util.js +0 -836
- package/src/wkd.js +0 -84
- package/src/worker/async_proxy.js +0 -190
- package/src/worker/worker.js +0 -167
- package/test/crypto/aes_kw.js +0 -57
- package/test/crypto/cipher/aes.js +0 -86
- package/test/crypto/cipher/blowfish.js +0 -58
- package/test/crypto/cipher/cast5.js +0 -25
- package/test/crypto/cipher/des.js +0 -143
- package/test/crypto/cipher/index.js +0 -7
- package/test/crypto/cipher/twofish.js +0 -71
- package/test/crypto/crypto.js +0 -383
- package/test/crypto/eax.js +0 -150
- package/test/crypto/ecdh.js +0 -359
- package/test/crypto/elliptic.js +0 -251
- package/test/crypto/elliptic_data.js +0 -102
- package/test/crypto/hash/index.js +0 -5
- package/test/crypto/hash/md5.js +0 -16
- package/test/crypto/hash/ripemd.js +0 -14
- package/test/crypto/hash/sha.js +0 -20
- package/test/crypto/index.js +0 -14
- package/test/crypto/ocb.js +0 -183
- package/test/crypto/pkcs5.js +0 -39
- package/test/crypto/random.js +0 -79
- package/test/crypto/rsa.js +0 -180
- package/test/crypto/validate.js +0 -387
- package/test/general/armor.js +0 -408
- package/test/general/brainpool.js +0 -360
- package/test/general/decompression.js +0 -60
- package/test/general/ecc_nist.js +0 -115
- package/test/general/ecc_secp256k1.js +0 -242
- package/test/general/forwarding.js +0 -43
- package/test/general/hkp.js +0 -165
- package/test/general/index.js +0 -20
- package/test/general/key.js +0 -3491
- package/test/general/keyring.js +0 -336
- package/test/general/oid.js +0 -39
- package/test/general/openpgp.js +0 -2577
- package/test/general/packet.js +0 -950
- package/test/general/signature.js +0 -1715
- package/test/general/streaming.js +0 -944
- package/test/general/testInputs.js +0 -18
- package/test/general/util.js +0 -183
- package/test/general/wkd.js +0 -48
- package/test/general/x25519.js +0 -556
- package/test/unittests.js +0 -64
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protontech/openpgp",
|
|
3
3
|
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.3.1",
|
|
5
5
|
"license": "LGPL-3.0+",
|
|
6
6
|
"homepage": "https://openpgpjs.org/",
|
|
7
7
|
"engines": {
|
|
@@ -13,82 +13,88 @@
|
|
|
13
13
|
"gpg",
|
|
14
14
|
"openpgp"
|
|
15
15
|
],
|
|
16
|
-
"main": "dist/openpgp.js",
|
|
16
|
+
"main": "dist/node/openpgp.min.js",
|
|
17
|
+
"module": "dist/node/openpgp.min.mjs",
|
|
18
|
+
"browser": {
|
|
19
|
+
"./dist/node/openpgp.min.js": "./dist/openpgp.min.js",
|
|
20
|
+
"./dist/node/openpgp.min.mjs": "./dist/openpgp.min.mjs"
|
|
21
|
+
},
|
|
22
|
+
"types": "openpgp.d.ts",
|
|
17
23
|
"directories": {
|
|
18
24
|
"lib": "src"
|
|
19
25
|
},
|
|
20
26
|
"files": [
|
|
21
|
-
"src/",
|
|
22
27
|
"dist/",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"test/crypto"
|
|
28
|
+
"lightweight/",
|
|
29
|
+
"openpgp.d.ts"
|
|
26
30
|
],
|
|
31
|
+
"esm": {
|
|
32
|
+
"cjs": {
|
|
33
|
+
"dedefault": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
27
36
|
"scripts": {
|
|
28
|
-
"build": "
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
37
|
+
"build": "rollup --config",
|
|
38
|
+
"build-test": "npm run build --build-only=test",
|
|
39
|
+
"prepare": "npm run build",
|
|
40
|
+
"test": "mocha --require esm --timeout 120000 test/unittests.js",
|
|
41
|
+
"test-type-definitions": "tsc test/typescript/definitions.ts && node test/typescript/definitions.js",
|
|
42
|
+
"benchmark-time": "node test/benchmarks/time.js",
|
|
43
|
+
"benchmark-memory-usage": "node --require esm test/benchmarks/memory_usage.js",
|
|
44
|
+
"start": "http-server",
|
|
45
|
+
"prebrowsertest": "npm run build-test",
|
|
46
|
+
"browsertest": "npm start -- -o test/unittests.html",
|
|
47
|
+
"browserstack": "karma start test/karma.conf.js",
|
|
48
|
+
"coverage": "nyc npm test",
|
|
49
|
+
"lint": "eslint .",
|
|
50
|
+
"docs": "jsdoc --configure .jsdocrc.js --destination docs --recurse README.md src && printf '%s' 'docs.openpgpjs.org' > docs/CNAME",
|
|
51
|
+
"preversion": "rm -rf dist docs node_modules && npm ci && npm test",
|
|
52
|
+
"version": "npm run docs && git add -A docs",
|
|
53
|
+
"postversion": "git push && git push --tags && npm publish"
|
|
32
54
|
},
|
|
33
55
|
"devDependencies": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
56
|
+
"@openpgp/asmcrypto.js": "^2.3.2",
|
|
57
|
+
"@openpgp/elliptic": "^6.5.1",
|
|
58
|
+
"@openpgp/jsdoc": "^3.6.4",
|
|
59
|
+
"@openpgp/pako": "^1.0.12",
|
|
60
|
+
"@openpgp/seek-bzip": "^1.0.5-git",
|
|
61
|
+
"@openpgp/tweetnacl": "^1.0.3",
|
|
62
|
+
"@openpgp/web-stream-tools": "^0.0.11",
|
|
63
|
+
"@rollup/plugin-commonjs": "^11.1.0",
|
|
64
|
+
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
65
|
+
"@rollup/plugin-replace": "^2.3.2",
|
|
66
|
+
"@types/chai": "^4.2.14",
|
|
67
|
+
"babel-eslint": "^10.1.0",
|
|
68
|
+
"benchmark": "^2.1.4",
|
|
69
|
+
"bn.js": "^4.11.8",
|
|
70
|
+
"chai": "^4.3.6",
|
|
47
71
|
"chai-as-promised": "^7.1.1",
|
|
48
|
-
"
|
|
72
|
+
"email-addresses": "3.1.0",
|
|
49
73
|
"eslint": "^4.17.0",
|
|
50
74
|
"eslint-config-airbnb": "^16.1.0",
|
|
51
75
|
"eslint-config-airbnb-base": "^12.1.0",
|
|
52
|
-
"eslint-plugin-import": "^2.8.0",
|
|
53
76
|
"eslint-plugin-chai-friendly": "^0.5.0",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"grunt-mocha-test": "^0.13.3",
|
|
64
|
-
"grunt-simple-nyc": "^3.0.1",
|
|
65
|
-
"grunt-terser": "^0.1.0",
|
|
66
|
-
"grunt-text-replace": "~0.4.0",
|
|
67
|
-
"gruntify-eslint": "^4.0.0",
|
|
68
|
-
"mocha": "^5.0.0",
|
|
77
|
+
"eslint-plugin-import": "^2.8.0",
|
|
78
|
+
"esm": "^3.2.25",
|
|
79
|
+
"hash.js": "^1.1.3",
|
|
80
|
+
"http-server": "^0.12.3",
|
|
81
|
+
"karma": "^6.3.17",
|
|
82
|
+
"karma-browserstack-launcher": "^1.6.0",
|
|
83
|
+
"karma-mocha": "^2.0.1",
|
|
84
|
+
"karma-mocha-reporter": "^2.2.5",
|
|
85
|
+
"mocha": "^8.4.0",
|
|
69
86
|
"nyc": "^14.1.1",
|
|
87
|
+
"rollup": "^2.38.5",
|
|
88
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
70
89
|
"sinon": "^4.3.0",
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"@mattiasbuelens/web-streams-polyfill": "^0.3.1",
|
|
74
|
-
"asmcrypto.js": "github:openpgpjs/asmcrypto#475cffa5ccb2cf2556427056679414acf3610d1b",
|
|
75
|
-
"bn.js": "^4.11.8",
|
|
76
|
-
"buffer": "^5.0.8",
|
|
77
|
-
"elliptic": "github:openpgpjs/elliptic#ab7d8268c60b6abeb175841c578c224ac5b2d279",
|
|
78
|
-
"hash.js": "^1.1.3",
|
|
79
|
-
"pako": "^1.0.6",
|
|
80
|
-
"seek-bzip": "github:openpgpjs/seek-bzip#6187fc025851d35c4e104a25ea15a10b9b8d6f7d",
|
|
81
|
-
"tweetnacl": "github:openpgpjs/tweetnacl-js#1ef755f2b252a3e328ac739848d00e0dad76be2d",
|
|
82
|
-
"web-stream-tools": "github:openpgpjs/web-stream-tools#dc4b05e8a272b45819233f3df735423432beacfc",
|
|
83
|
-
"email-addresses": "3.1.0"
|
|
90
|
+
"typescript": "^4.1.2",
|
|
91
|
+
"web-streams-polyfill": "^3.2.0"
|
|
84
92
|
},
|
|
85
93
|
"dependencies": {
|
|
86
|
-
"asn1.js": "^5.0.0"
|
|
87
|
-
"node-fetch": "^2.1.2",
|
|
88
|
-
"node-localstorage": "~1.3.0"
|
|
94
|
+
"asn1.js": "^5.0.0"
|
|
89
95
|
},
|
|
90
96
|
"repository": {
|
|
91
97
|
"type": "git",
|
|
92
|
-
"url": "https://github.com/
|
|
98
|
+
"url": "https://github.com/ProtonMail/openpgpjs"
|
|
93
99
|
}
|
|
94
100
|
}
|