@protontech/openpgp 6.0.0-beta.0 → 6.0.0-beta.0.patch.0
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/dist/lightweight/argon2id.min.mjs +1 -1
- package/dist/lightweight/argon2id.mjs +1 -1
- package/dist/lightweight/bn.interface.min.mjs +1 -1
- package/dist/lightweight/bn.interface.mjs +1 -1
- package/dist/lightweight/interface.min.mjs +1 -1
- package/dist/lightweight/interface.mjs +1 -1
- package/dist/lightweight/legacy_ciphers.min.mjs +1 -1
- package/dist/lightweight/legacy_ciphers.mjs +1 -1
- package/dist/lightweight/native.interface.min.mjs +1 -1
- package/dist/lightweight/native.interface.mjs +1 -1
- package/dist/lightweight/noble_curves.min.mjs +1 -1
- package/dist/lightweight/noble_curves.mjs +1 -1
- package/dist/lightweight/noble_hashes.min.mjs +1 -1
- package/dist/lightweight/noble_hashes.mjs +1 -1
- package/dist/lightweight/openpgp.min.mjs +2 -2
- package/dist/lightweight/openpgp.min.mjs.map +1 -1
- package/dist/lightweight/openpgp.mjs +11 -3
- package/dist/lightweight/sha3.min.mjs +1 -1
- package/dist/lightweight/sha3.mjs +1 -1
- package/dist/node/openpgp.cjs +11 -3
- package/dist/node/openpgp.min.cjs +2 -2
- package/dist/node/openpgp.min.cjs.map +1 -1
- package/dist/node/openpgp.min.mjs +7 -7
- package/dist/node/openpgp.min.mjs.map +1 -1
- package/dist/node/openpgp.mjs +11 -3
- package/dist/openpgp.js +11 -3
- package/dist/openpgp.min.js +2 -2
- package/dist/openpgp.min.js.map +1 -1
- package/dist/openpgp.min.mjs +7 -7
- package/dist/openpgp.min.mjs.map +1 -1
- package/dist/openpgp.mjs +11 -3
- package/openpgp.d.ts +1 -0
- package/package.json +1 -1
package/dist/openpgp.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! OpenPGP.js v6.0.0-beta.0 - 2024-04-
|
|
1
|
+
/*! OpenPGP.js v6.0.0-beta.0.patch.0 - 2024-04-19 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */
|
|
2
2
|
const globalThis = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
3
3
|
|
|
4
4
|
const doneWritingPromise = Symbol('doneWritingPromise');
|
|
@@ -1465,6 +1465,14 @@ var config = {
|
|
|
1465
1465
|
* @property {Boolean} aeadProtect
|
|
1466
1466
|
*/
|
|
1467
1467
|
aeadProtect: false,
|
|
1468
|
+
/**
|
|
1469
|
+
* Whether to disable encrypton using SEIPDv2 even if the encryption keys include the SEIPDv2 feature flag.
|
|
1470
|
+
* If true, SEIPDv1 (i.e. no AEAD) packets are always used instead.
|
|
1471
|
+
* SEIPDv2 is a more secure and faster choice, but it is not necessarily compatible with other libs and our mobile apps.
|
|
1472
|
+
* @memberof module:config
|
|
1473
|
+
* @property {Boolean} ignoreSEIPDv2FeatureFlag
|
|
1474
|
+
*/
|
|
1475
|
+
ignoreSEIPDv2FeatureFlag: false,
|
|
1468
1476
|
/**
|
|
1469
1477
|
* When reading OpenPGP v4 private keys (e.g. those generated in OpenPGP.js when not setting `config.v5Keys = true`)
|
|
1470
1478
|
* which were encrypted by OpenPGP.js v5 (or older) using `config.aeadProtect = true`,
|
|
@@ -1652,7 +1660,7 @@ var config = {
|
|
|
1652
1660
|
* @memberof module:config
|
|
1653
1661
|
* @property {String} versionString A version string to be included in armored messages
|
|
1654
1662
|
*/
|
|
1655
|
-
versionString: 'OpenPGP.js 6.0.0-beta.0',
|
|
1663
|
+
versionString: 'OpenPGP.js 6.0.0-beta.0.patch.0',
|
|
1656
1664
|
/**
|
|
1657
1665
|
* @memberof module:config
|
|
1658
1666
|
* @property {String} commentString A comment string to be included in armored messages
|
|
@@ -18386,7 +18394,7 @@ async function getPreferredCompressionAlgo(keys = [], date = new Date(), userIDs
|
|
|
18386
18394
|
async function getPreferredCipherSuite(keys = [], date = new Date(), userIDs = [], config$1 = config) {
|
|
18387
18395
|
const selfSigs = await Promise.all(keys.map((key, i) => key.getPrimarySelfSignature(date, userIDs[i], config$1)));
|
|
18388
18396
|
const withAEAD = keys.length ?
|
|
18389
|
-
selfSigs.every(selfSig => selfSig.features && (selfSig.features[0] & enums.features.seipdv2)) :
|
|
18397
|
+
!config$1.ignoreSEIPDv2FeatureFlag && selfSigs.every(selfSig => selfSig.features && (selfSig.features[0] & enums.features.seipdv2)) :
|
|
18390
18398
|
config$1.aeadProtect;
|
|
18391
18399
|
|
|
18392
18400
|
if (withAEAD) {
|
package/openpgp.d.ts
CHANGED
|
@@ -324,6 +324,7 @@ interface Config {
|
|
|
324
324
|
showVersion: boolean;
|
|
325
325
|
showComment: boolean;
|
|
326
326
|
aeadProtect: boolean;
|
|
327
|
+
ignoreSEIPDv2FeatureFlag: boolean;
|
|
327
328
|
allowUnauthenticatedMessages: boolean;
|
|
328
329
|
allowUnauthenticatedStream: boolean;
|
|
329
330
|
allowForwardedMessages: boolean;
|
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": "6.0.0-beta.0",
|
|
4
|
+
"version": "6.0.0-beta.0.patch.0",
|
|
5
5
|
"license": "LGPL-3.0+",
|
|
6
6
|
"homepage": "https://openpgpjs.org/",
|
|
7
7
|
"engines": {
|