@protontech/openpgp 6.0.0 → 6.0.2-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/legacy_ciphers.min.mjs +1 -1
- package/dist/lightweight/legacy_ciphers.mjs +1 -1
- package/dist/lightweight/noble_curves.min.mjs +11 -11
- package/dist/lightweight/noble_curves.min.mjs.map +1 -1
- package/dist/lightweight/noble_curves.mjs +260 -158
- package/dist/lightweight/noble_hashes.min.mjs +2 -2
- package/dist/lightweight/noble_hashes.min.mjs.map +1 -1
- package/dist/lightweight/noble_hashes.mjs +3 -2
- package/dist/lightweight/noble_post_quantum.min.mjs +5 -0
- package/dist/lightweight/noble_post_quantum.min.mjs.map +1 -0
- package/dist/lightweight/noble_post_quantum.mjs +1002 -0
- package/dist/lightweight/openpgp.min.mjs +4 -4
- package/dist/lightweight/openpgp.min.mjs.map +1 -1
- package/dist/lightweight/openpgp.mjs +626 -111
- package/dist/lightweight/seek-bzip.min.mjs +1 -1
- package/dist/lightweight/seek-bzip.mjs +1 -1
- package/dist/lightweight/sha3.min.mjs +3 -3
- package/dist/lightweight/sha3.min.mjs.map +1 -1
- package/dist/lightweight/sha3.mjs +27 -456
- package/dist/lightweight/sha512.min.mjs +3 -0
- package/dist/lightweight/sha512.min.mjs.map +1 -0
- package/dist/lightweight/sha512.mjs +436 -0
- package/dist/node/openpgp.cjs +2247 -621
- package/dist/node/openpgp.min.cjs +16 -14
- package/dist/node/openpgp.min.cjs.map +1 -1
- package/dist/node/openpgp.min.mjs +16 -14
- package/dist/node/openpgp.min.mjs.map +1 -1
- package/dist/node/openpgp.mjs +2247 -621
- package/dist/openpgp.js +2247 -621
- package/dist/openpgp.min.js +16 -14
- package/dist/openpgp.min.js.map +1 -1
- package/dist/openpgp.min.mjs +16 -14
- package/dist/openpgp.min.mjs.map +1 -1
- package/dist/openpgp.mjs +2247 -621
- package/openpgp.d.ts +7 -11
- package/package.json +5 -4
package/openpgp.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export class PrivateKey extends PublicKey {
|
|
|
94
94
|
public revoke(reason?: ReasonForRevocation, date?: Date, config?: Config): Promise<PrivateKey>;
|
|
95
95
|
public isDecrypted(): boolean;
|
|
96
96
|
public addSubkey(options: SubkeyOptions): Promise<PrivateKey>;
|
|
97
|
-
public getDecryptionKeys(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise<PrivateKey | Subkey>;
|
|
97
|
+
public getDecryptionKeys(keyID?: KeyID, date?: Date | null, userID?: UserID, config?: Config): Promise<(PrivateKey | Subkey)[]>;
|
|
98
98
|
public update(sourceKey: PublicKey, date?: Date, config?: Config): Promise<PrivateKey>;
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -704,7 +704,7 @@ export type EllipticCurveName = 'ed25519Legacy' | 'curve25519Legacy' | 'nistP256
|
|
|
704
704
|
interface GenerateKeyOptions {
|
|
705
705
|
userIDs: MaybeArray<UserID>;
|
|
706
706
|
passphrase?: string;
|
|
707
|
-
type?: 'ecc' | 'rsa';
|
|
707
|
+
type?: 'ecc' | 'rsa' | 'curve25519' | 'curve448' | 'pqc';
|
|
708
708
|
curve?: EllipticCurveName;
|
|
709
709
|
rsaBits?: number;
|
|
710
710
|
keyExpirationTime?: number;
|
|
@@ -715,15 +715,9 @@ interface GenerateKeyOptions {
|
|
|
715
715
|
}
|
|
716
716
|
export type KeyOptions = GenerateKeyOptions;
|
|
717
717
|
|
|
718
|
-
export interface SubkeyOptions {
|
|
719
|
-
type?: 'ecc' | 'rsa';
|
|
720
|
-
curve?: EllipticCurveName;
|
|
721
|
-
rsaBits?: number;
|
|
722
|
-
keyExpirationTime?: number;
|
|
723
|
-
date?: Date;
|
|
718
|
+
export interface SubkeyOptions extends Pick<GenerateKeyOptions, 'type' | 'curve' | 'rsaBits' | 'keyExpirationTime' | 'date' | 'config' > {
|
|
724
719
|
sign?: boolean;
|
|
725
720
|
forwarding?: boolean;
|
|
726
|
-
config?: PartialConfig;
|
|
727
721
|
}
|
|
728
722
|
|
|
729
723
|
export declare class KeyID {
|
|
@@ -831,7 +825,7 @@ export namespace enums {
|
|
|
831
825
|
aeadEncryptedData = 20
|
|
832
826
|
}
|
|
833
827
|
|
|
834
|
-
export type publicKeyNames = 'rsaEncryptSign' | 'rsaEncrypt' | 'rsaSign' | 'elgamal' | 'dsa' | 'ecdh' | 'ecdsa' | 'eddsaLegacy' | 'aedh' | 'aedsa' | 'ed25519' | 'x25519' | 'ed448' | 'x448';
|
|
828
|
+
export type publicKeyNames = 'rsaEncryptSign' | 'rsaEncrypt' | 'rsaSign' | 'elgamal' | 'dsa' | 'ecdh' | 'ecdsa' | 'eddsaLegacy' | 'aedh' | 'aedsa' | 'ed25519' | 'x25519' | 'ed448' | 'x448' | 'pqc_mlkem_x25519' | 'pqc_mldsa_ed25519';
|
|
835
829
|
export enum publicKey {
|
|
836
830
|
rsaEncryptSign = 1,
|
|
837
831
|
rsaEncrypt = 2,
|
|
@@ -846,7 +840,9 @@ export namespace enums {
|
|
|
846
840
|
x25519 = 25,
|
|
847
841
|
x448 = 26,
|
|
848
842
|
ed25519 = 27,
|
|
849
|
-
ed448 = 28
|
|
843
|
+
ed448 = 28,
|
|
844
|
+
pqc_mlkem_x25519 = 105,
|
|
845
|
+
pqc_mldsa_ed25519 = 107
|
|
850
846
|
}
|
|
851
847
|
|
|
852
848
|
export enum curve {
|
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",
|
|
4
|
+
"version": "6.0.2-patch.0",
|
|
5
5
|
"license": "LGPL-3.0+",
|
|
6
6
|
"homepage": "https://openpgpjs.org/",
|
|
7
7
|
"engines": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./openpgp.d.ts",
|
|
25
|
+
"browser": "./dist/openpgp.min.mjs",
|
|
25
26
|
"import": "./dist/node/openpgp.mjs",
|
|
26
|
-
"require": "./dist/node/openpgp.min.cjs"
|
|
27
|
-
"browser": "./dist/openpgp.min.mjs"
|
|
27
|
+
"require": "./dist/node/openpgp.min.cjs"
|
|
28
28
|
},
|
|
29
29
|
"./lightweight": {
|
|
30
30
|
"types": "./openpgp.d.ts",
|
|
@@ -63,9 +63,10 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@noble/ciphers": "^1.0.0",
|
|
66
|
-
"@noble/curves": "^1.
|
|
66
|
+
"@noble/curves": "^1.7.0",
|
|
67
67
|
"@noble/ed25519": "^1.7.3",
|
|
68
68
|
"@noble/hashes": "^1.5.0",
|
|
69
|
+
"@noble/post-quantum": "^0.2.1",
|
|
69
70
|
"@openpgp/jsdoc": "^3.6.11",
|
|
70
71
|
"@openpgp/seek-bzip": "^1.0.5-git",
|
|
71
72
|
"@openpgp/tweetnacl": "^1.0.4-1",
|