@protontech/openpgp 6.1.1-patch.1 → 6.1.1-patch.3

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.
Files changed (36) hide show
  1. package/dist/lightweight/argon2id.min.mjs +1 -1
  2. package/dist/lightweight/argon2id.mjs +1 -1
  3. package/dist/lightweight/legacy_ciphers.min.mjs +1 -1
  4. package/dist/lightweight/legacy_ciphers.mjs +1 -1
  5. package/dist/lightweight/noble_curves.min.mjs +1 -1
  6. package/dist/lightweight/noble_curves.mjs +1 -1
  7. package/dist/lightweight/noble_hashes.min.mjs +1 -1
  8. package/dist/lightweight/noble_hashes.mjs +1 -1
  9. package/dist/lightweight/noble_post_quantum.min.mjs +1 -1
  10. package/dist/lightweight/noble_post_quantum.mjs +1 -1
  11. package/dist/lightweight/openpgp.min.mjs +4 -4
  12. package/dist/lightweight/openpgp.min.mjs.map +1 -1
  13. package/dist/lightweight/openpgp.mjs +178 -95
  14. package/dist/lightweight/seek-bzip.min.mjs +1 -1
  15. package/dist/lightweight/seek-bzip.mjs +1 -1
  16. package/dist/lightweight/sha3.min.mjs +1 -1
  17. package/dist/lightweight/sha3.mjs +1 -1
  18. package/dist/lightweight/sha512.min.mjs +1 -1
  19. package/dist/lightweight/sha512.mjs +1 -1
  20. package/dist/node/openpgp.cjs +178 -95
  21. package/dist/node/openpgp.min.cjs +16 -16
  22. package/dist/node/openpgp.min.cjs.map +1 -1
  23. package/dist/node/openpgp.min.mjs +16 -16
  24. package/dist/node/openpgp.min.mjs.map +1 -1
  25. package/dist/node/openpgp.mjs +178 -95
  26. package/dist/openpgp.js +178 -95
  27. package/dist/openpgp.min.js +16 -16
  28. package/dist/openpgp.min.js.map +1 -1
  29. package/dist/openpgp.min.mjs +16 -16
  30. package/dist/openpgp.min.mjs.map +1 -1
  31. package/dist/openpgp.mjs +178 -95
  32. package/openpgp.d.ts +1 -1
  33. package/package.json +3 -2
  34. package/src/config/config.d.ts +68 -0
  35. package/src/config/index.d.ts +13 -0
  36. package/src/enums.d.ts +195 -0
package/src/enums.d.ts ADDED
@@ -0,0 +1,195 @@
1
+ declare namespace enums {
2
+ export function read(type: typeof armor, e: armor): armorNames;
3
+ export function read(type: typeof compression, e: compression): compressionNames;
4
+ export function read(type: typeof hash, e: hash): hashNames;
5
+ export function read(type: typeof packet, e: packet): packetNames;
6
+ export function read(type: typeof publicKey, e: publicKey): publicKeyNames;
7
+ export function read(type: typeof symmetric, e: symmetric): symmetricNames;
8
+ export function read(type: typeof keyStatus, e: keyStatus): keyStatusNames;
9
+ export function read(type: typeof keyFlags, e: keyFlags): keyFlagsNames;
10
+
11
+ export type armorNames = 'multipartSection' | 'multipartLast' | 'signed' | 'message' | 'publicKey' | 'privateKey';
12
+ export enum armor {
13
+ multipartSection = 0,
14
+ multipartLast = 1,
15
+ signed = 2,
16
+ message = 3,
17
+ publicKey = 4,
18
+ privateKey = 5,
19
+ signature = 6
20
+ }
21
+
22
+ export enum reasonForRevocation {
23
+ noReason = 0, // No reason specified (key revocations or cert revocations)
24
+ keySuperseded = 1, // Key is superseded (key revocations)
25
+ keyCompromised = 2, // Key material has been compromised (key revocations)
26
+ keyRetired = 3, // Key is retired and no longer used (key revocations)
27
+ userIDInvalid = 32 // User ID information is no longer valid (cert revocations)
28
+ }
29
+
30
+ export type compressionNames = 'uncompressed' | 'zip' | 'zlib' | 'bzip2';
31
+ export enum compression {
32
+ uncompressed = 0,
33
+ zip = 1,
34
+ zlib = 2,
35
+ bzip2 = 3
36
+ }
37
+
38
+ export type hashNames = 'md5' | 'sha1' | 'ripemd' | 'sha256' | 'sha384' | 'sha512' | 'sha224' | 'sha3_256' | 'sha3_512';
39
+ export enum hash {
40
+ md5 = 1,
41
+ sha1 = 2,
42
+ ripemd = 3,
43
+ sha256 = 8,
44
+ sha384 = 9,
45
+ sha512 = 10,
46
+ sha224 = 11,
47
+ sha3_256 = 12,
48
+ sha3_512 = 14
49
+ }
50
+
51
+ export type packetNames = 'publicKeyEncryptedSessionKey' | 'signature' | 'symEncryptedSessionKey' | 'onePassSignature' | 'secretKey' | 'publicKey' |
52
+ 'secretSubkey' | 'compressed' | 'symmetricallyEncrypted' | 'marker' | 'literal' | 'trust' | 'userID' | 'publicSubkey' | 'userAttribute' |
53
+ 'symEncryptedIntegrityProtected' | 'modificationDetectionCode' | 'AEADEncryptedDataPacket' | 'padding';
54
+ export enum packet {
55
+ publicKeyEncryptedSessionKey = 1,
56
+ signature = 2,
57
+ symEncryptedSessionKey = 3,
58
+ onePassSignature = 4,
59
+ secretKey = 5,
60
+ publicKey = 6,
61
+ secretSubkey = 7,
62
+ compressedData = 8,
63
+ symmetricallyEncryptedData = 9,
64
+ marker = 10,
65
+ literalData = 11,
66
+ trust = 12,
67
+ userID = 13,
68
+ publicSubkey = 14,
69
+ userAttribute = 17,
70
+ symEncryptedIntegrityProtectedData = 18,
71
+ modificationDetectionCode = 19,
72
+ aeadEncryptedData = 20,
73
+ padding = 21
74
+ }
75
+
76
+ export type publicKeyNames = 'rsaEncryptSign' | 'rsaEncrypt' | 'rsaSign' | 'elgamal' | 'dsa' | 'ecdh' | 'ecdsa' | 'eddsaLegacy' | 'aedh' | 'aedsa' | 'ed25519' | 'x25519' | 'ed448' | 'x448' | 'pqc_mlkem_x25519' | 'pqc_mldsa_ed25519';
77
+ export enum publicKey {
78
+ rsaEncryptSign = 1,
79
+ rsaEncrypt = 2,
80
+ rsaSign = 3,
81
+ elgamal = 16,
82
+ dsa = 17,
83
+ ecdh = 18,
84
+ ecdsa = 19,
85
+ eddsaLegacy = 22,
86
+ aedh = 23,
87
+ aedsa = 24,
88
+ x25519 = 25,
89
+ x448 = 26,
90
+ ed25519 = 27,
91
+ ed448 = 28,
92
+ pqc_mldsa_ed25519 = 30,
93
+ pqc_mlkem_x25519 = 35
94
+ }
95
+
96
+ export enum curve {
97
+ /** @deprecated use `nistP256` instead */
98
+ p256 = 'nistP256',
99
+ nistP256 = 'nistP256',
100
+ /** @deprecated use `nistP384` instead */
101
+ p384 = 'nistP384',
102
+ nistP384 = 'nistP384',
103
+ /** @deprecated use `nistP521` instead */
104
+ p521 = 'nistP521',
105
+ nistP521 = 'nistP521',
106
+ /** @deprecated use `ed25519Legacy` instead */
107
+ ed25519 = 'ed25519Legacy',
108
+ ed25519Legacy = 'ed25519Legacy',
109
+ /** @deprecated use `curve25519Legacy` instead */
110
+ curve25519 = 'curve25519Legacy',
111
+ curve25519Legacy = 'curve25519Legacy',
112
+ secp256k1 = 'secp256k1',
113
+ brainpoolP256r1 = 'brainpoolP256r1',
114
+ brainpoolP384r1 = 'brainpoolP384r1',
115
+ brainpoolP512r1 = 'brainpoolP512r1'
116
+ }
117
+
118
+ export type symmetricNames = 'idea' | 'tripledes' | 'cast5' | 'blowfish' | 'aes128' | 'aes192' | 'aes256' | 'twofish';
119
+ export enum symmetric {
120
+ idea = 1,
121
+ tripledes = 2,
122
+ cast5 = 3,
123
+ blowfish = 4,
124
+ aes128 = 7,
125
+ aes192 = 8,
126
+ aes256 = 9,
127
+ twofish = 10
128
+ }
129
+
130
+ export type keyStatusNames = 'invalid' | 'expired' | 'revoked' | 'valid' | 'noSelfCert';
131
+ export enum keyStatus {
132
+ invalid = 0,
133
+ expired = 1,
134
+ revoked = 2,
135
+ valid = 3,
136
+ noSelfCert = 4
137
+ }
138
+
139
+ export type keyFlagsNames = 'certifyKeys' | 'signData' | 'encryptCommunication' | 'encryptStorage' | 'splitPrivateKey' | 'authentication' | 'sharedPrivateKey';
140
+ export enum keyFlags {
141
+ certifyKeys = 1,
142
+ signData = 2,
143
+ encryptCommunication = 4,
144
+ encryptStorage = 8,
145
+ splitPrivateKey = 16,
146
+ authentication = 32,
147
+ forwardedCommunication = 64,
148
+ sharedPrivateKey = 128
149
+ }
150
+
151
+ export enum signature {
152
+ binary = 0,
153
+ text = 1,
154
+ standalone = 2,
155
+ certGeneric = 16,
156
+ certPersona = 17,
157
+ certCasual = 18,
158
+ certPositive = 19,
159
+ certRevocation = 48,
160
+ subkeyBinding = 24,
161
+ keyBinding = 25,
162
+ key = 31,
163
+ keyRevocation = 32,
164
+ subkeyRevocation = 40,
165
+ timestamp = 64,
166
+ thirdParty = 80
167
+ }
168
+
169
+ export type aeadNames = 'eax' | 'ocb' | 'gcm';
170
+ export enum aead {
171
+ eax = 1,
172
+ ocb = 2,
173
+ gcm = 3,
174
+ /** @deprecated use `gcm` instead */
175
+ experimentalGCM = 100 // Private algorithm
176
+ }
177
+
178
+ export type literalFormatNames = 'utf8' | 'binary' | 'text' | 'mime';
179
+ export enum literal {
180
+ binary = 98,
181
+ text = 116,
182
+ utf8 = 117,
183
+ mime = 109
184
+ }
185
+
186
+ export enum s2k {
187
+ simple = 0,
188
+ salted = 1,
189
+ iterated = 3,
190
+ argon2 = 4,
191
+ gnu = 101
192
+ }
193
+ }
194
+
195
+ export default enums;