@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/node/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
|
import { createRequire } from 'module';
|
|
@@ -1468,6 +1468,14 @@ var config = {
|
|
|
1468
1468
|
* @property {Boolean} aeadProtect
|
|
1469
1469
|
*/
|
|
1470
1470
|
aeadProtect: false,
|
|
1471
|
+
/**
|
|
1472
|
+
* Whether to disable encrypton using SEIPDv2 even if the encryption keys include the SEIPDv2 feature flag.
|
|
1473
|
+
* If true, SEIPDv1 (i.e. no AEAD) packets are always used instead.
|
|
1474
|
+
* SEIPDv2 is a more secure and faster choice, but it is not necessarily compatible with other libs and our mobile apps.
|
|
1475
|
+
* @memberof module:config
|
|
1476
|
+
* @property {Boolean} ignoreSEIPDv2FeatureFlag
|
|
1477
|
+
*/
|
|
1478
|
+
ignoreSEIPDv2FeatureFlag: false,
|
|
1471
1479
|
/**
|
|
1472
1480
|
* When reading OpenPGP v4 private keys (e.g. those generated in OpenPGP.js when not setting `config.v5Keys = true`)
|
|
1473
1481
|
* which were encrypted by OpenPGP.js v5 (or older) using `config.aeadProtect = true`,
|
|
@@ -1655,7 +1663,7 @@ var config = {
|
|
|
1655
1663
|
* @memberof module:config
|
|
1656
1664
|
* @property {String} versionString A version string to be included in armored messages
|
|
1657
1665
|
*/
|
|
1658
|
-
versionString: 'OpenPGP.js 6.0.0-beta.0',
|
|
1666
|
+
versionString: 'OpenPGP.js 6.0.0-beta.0.patch.0',
|
|
1659
1667
|
/**
|
|
1660
1668
|
* @memberof module:config
|
|
1661
1669
|
* @property {String} commentString A comment string to be included in armored messages
|
|
@@ -18389,7 +18397,7 @@ async function getPreferredCompressionAlgo(keys = [], date = new Date(), userIDs
|
|
|
18389
18397
|
async function getPreferredCipherSuite(keys = [], date = new Date(), userIDs = [], config$1 = config) {
|
|
18390
18398
|
const selfSigs = await Promise.all(keys.map((key, i) => key.getPrimarySelfSignature(date, userIDs[i], config$1)));
|
|
18391
18399
|
const withAEAD = keys.length ?
|
|
18392
|
-
selfSigs.every(selfSig => selfSig.features && (selfSig.features[0] & enums.features.seipdv2)) :
|
|
18400
|
+
!config$1.ignoreSEIPDv2FeatureFlag && selfSigs.every(selfSig => selfSig.features && (selfSig.features[0] & enums.features.seipdv2)) :
|
|
18393
18401
|
config$1.aeadProtect;
|
|
18394
18402
|
|
|
18395
18403
|
if (withAEAD) {
|
package/dist/openpgp.js
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
|
var openpgp = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -1468,6 +1468,14 @@ var openpgp = (function (exports) {
|
|
|
1468
1468
|
* @property {Boolean} aeadProtect
|
|
1469
1469
|
*/
|
|
1470
1470
|
aeadProtect: false,
|
|
1471
|
+
/**
|
|
1472
|
+
* Whether to disable encrypton using SEIPDv2 even if the encryption keys include the SEIPDv2 feature flag.
|
|
1473
|
+
* If true, SEIPDv1 (i.e. no AEAD) packets are always used instead.
|
|
1474
|
+
* SEIPDv2 is a more secure and faster choice, but it is not necessarily compatible with other libs and our mobile apps.
|
|
1475
|
+
* @memberof module:config
|
|
1476
|
+
* @property {Boolean} ignoreSEIPDv2FeatureFlag
|
|
1477
|
+
*/
|
|
1478
|
+
ignoreSEIPDv2FeatureFlag: false,
|
|
1471
1479
|
/**
|
|
1472
1480
|
* When reading OpenPGP v4 private keys (e.g. those generated in OpenPGP.js when not setting `config.v5Keys = true`)
|
|
1473
1481
|
* which were encrypted by OpenPGP.js v5 (or older) using `config.aeadProtect = true`,
|
|
@@ -1655,7 +1663,7 @@ var openpgp = (function (exports) {
|
|
|
1655
1663
|
* @memberof module:config
|
|
1656
1664
|
* @property {String} versionString A version string to be included in armored messages
|
|
1657
1665
|
*/
|
|
1658
|
-
versionString: 'OpenPGP.js 6.0.0-beta.0',
|
|
1666
|
+
versionString: 'OpenPGP.js 6.0.0-beta.0.patch.0',
|
|
1659
1667
|
/**
|
|
1660
1668
|
* @memberof module:config
|
|
1661
1669
|
* @property {String} commentString A comment string to be included in armored messages
|
|
@@ -18389,7 +18397,7 @@ var openpgp = (function (exports) {
|
|
|
18389
18397
|
async function getPreferredCipherSuite(keys = [], date = new Date(), userIDs = [], config$1 = config) {
|
|
18390
18398
|
const selfSigs = await Promise.all(keys.map((key, i) => key.getPrimarySelfSignature(date, userIDs[i], config$1)));
|
|
18391
18399
|
const withAEAD = keys.length ?
|
|
18392
|
-
selfSigs.every(selfSig => selfSig.features && (selfSig.features[0] & enums.features.seipdv2)) :
|
|
18400
|
+
!config$1.ignoreSEIPDv2FeatureFlag && selfSigs.every(selfSig => selfSig.features && (selfSig.features[0] & enums.features.seipdv2)) :
|
|
18393
18401
|
config$1.aeadProtect;
|
|
18394
18402
|
|
|
18395
18403
|
if (withAEAD) {
|