@protontech/openpgp 5.9.1-1 → 5.11.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/openpgp.d.ts CHANGED
@@ -345,7 +345,7 @@ interface Config {
345
345
  rejectPublicKeyAlgorithms: Set<enums.publicKey>;
346
346
  rejectCurves: Set<enums.curve>;
347
347
  }
348
- export var config: Config;
348
+ export var config: Config & { checkEdDSAFaultySignatures: boolean }; // option only supported if set at the global openpgp.config level
349
349
 
350
350
  // PartialConfig has the same properties as Config, but declared as optional.
351
351
  // This interface is relevant for top-level functions, which accept a subset of configuration options
@@ -398,6 +398,7 @@ declare abstract class BaseSecretKeyPacket extends BasePublicKeyPacket {
398
398
  public decrypt(passphrase: string): Promise<void>; // throws on error
399
399
  public validate(): Promise<void>; // throws on error
400
400
  public isDummy(): boolean;
401
+ public isMissingSecretKeyMaterial(): boolean;
401
402
  public makeDummy(config?: Config): void;
402
403
  }
403
404
 
@@ -660,7 +661,7 @@ interface VerifyOptions {
660
661
  /** (optional) detached signature for verification */
661
662
  signature?: Signature;
662
663
  /** (optional) use the given date for verification instead of the current time */
663
- date?: Date;
664
+ date?: Date | null;
664
665
  config?: PartialConfig;
665
666
  }
666
667
 
@@ -823,7 +824,9 @@ export namespace enums {
823
824
  dsa = 17,
824
825
  ecdh = 18,
825
826
  ecdsa = 19,
827
+ /** @deprecated use `eddsaLegacy` instead */
826
828
  eddsa = 22,
829
+ eddsaLegacy = 22,
827
830
  aedh = 23,
828
831
  aedsa = 24,
829
832
  }
@@ -832,8 +835,12 @@ export namespace enums {
832
835
  p256 = 'p256',
833
836
  p384 = 'p384',
834
837
  p521 = 'p521',
838
+ /** @deprecated use `ed25519Legacy` instead */
835
839
  ed25519 = 'ed25519',
840
+ ed25519Legacy = 'ed25519',
841
+ /** @deprecated use `curve25519Legacy` instead */
836
842
  curve25519 = 'curve25519',
843
+ curve25519Legacy = 'curve25519',
837
844
  secp256k1 = 'secp256k1',
838
845
  brainpoolP256r1 = 'brainpoolP256r1',
839
846
  brainpoolP384r1 = 'brainpoolP384r1',
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": "5.9.1-1",
4
+ "version": "5.11.0",
5
5
  "license": "LGPL-3.0+",
6
6
  "homepage": "https://openpgpjs.org/",
7
7
  "engines": {
@@ -45,7 +45,7 @@
45
45
  "prebrowsertest": "npm run build-test",
46
46
  "browsertest": "npm start -- -o test/unittests.html",
47
47
  "test-browser": "karma start test/karma.conf.js",
48
- "test-browserstack": "karma start test/karma.conf.js --browsers bs_safari_latest,bs_ios_15,bs_safari_13_1",
48
+ "test-browserstack": "karma start test/karma.conf.js --browsers bs_safari_latest,bs_ios_14,bs_safari_13_1",
49
49
  "coverage": "nyc npm test",
50
50
  "lint": "eslint .",
51
51
  "docs": "jsdoc --configure .jsdocrc.js --destination docs --recurse README.md src && printf '%s' 'docs.openpgpjs.org' > docs/CNAME",
@@ -60,7 +60,7 @@
60
60
  "@openpgp/pako": "^1.0.12",
61
61
  "@openpgp/seek-bzip": "^1.0.5-git",
62
62
  "@openpgp/tweetnacl": "^1.0.3",
63
- "@openpgp/web-stream-tools": "^0.0.11",
63
+ "@openpgp/web-stream-tools": "0.0.11-patch-0",
64
64
  "@rollup/plugin-commonjs": "^11.1.0",
65
65
  "@rollup/plugin-node-resolve": "^7.1.3",
66
66
  "@rollup/plugin-replace": "^2.3.2",