unjwt 0.5.38 → 0.5.39
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/README.md +142 -666
- package/dist/_chunks/chunk.mjs +13 -0
- package/dist/_chunks/h3v1.mjs +598 -0
- package/dist/_chunks/index.d.mts +250 -0
- package/dist/_chunks/index2.d.mts +108 -0
- package/dist/_chunks/jwe.d.mts +43 -0
- package/dist/_chunks/jwe.mjs +132 -0
- package/dist/_chunks/jwk.d.mts +575 -0
- package/dist/_chunks/jwk.mjs +1592 -0
- package/dist/_chunks/jws.d.mts +46 -0
- package/dist/_chunks/jws.mjs +2069 -0
- package/dist/_chunks/utils.mjs +374 -0
- package/dist/adapters/h3.d.mts +3 -267
- package/dist/adapters/h3.mjs +3 -704
- package/dist/adapters/h3v1.d.mts +3 -8
- package/dist/adapters/h3v1.mjs +3 -7
- package/dist/adapters/h3v2.d.mts +145 -146
- package/dist/adapters/h3v2.mjs +505 -594
- package/dist/index.d.mts +6 -8
- package/dist/index.mjs +5 -4
- package/dist/jwe.d.mts +3 -4
- package/dist/jwe.mjs +4 -3
- package/dist/jwk.d.mts +3 -2
- package/dist/jwk.mjs +3 -2
- package/dist/jws.d.mts +3 -3
- package/dist/jws.mjs +4 -3
- package/dist/utils.d.mts +3 -3
- package/dist/utils.mjs +2 -1
- package/package.json +33 -31
- package/dist/shared/unjwt.4JQCoID_.d.mts +0 -161
- package/dist/shared/unjwt.B-v62plj.mjs +0 -249
- package/dist/shared/unjwt.BCi3FEWr.d.mts +0 -328
- package/dist/shared/unjwt.BYDTEWa-.d.mts +0 -269
- package/dist/shared/unjwt.Be8NxwFK.mjs +0 -438
- package/dist/shared/unjwt.BqdNUKDr.d.mts +0 -64
- package/dist/shared/unjwt.CMNtw8ek.d.mts +0 -155
- package/dist/shared/unjwt.Cy2MlkUe.d.mts +0 -174
- package/dist/shared/unjwt.D0_ccT7g.d.mts +0 -166
- package/dist/shared/unjwt.DdLN9vwI.mjs +0 -163
- package/dist/shared/unjwt.Dpl__ZAR.mjs +0 -2121
- package/dist/shared/unjwt.JdKqVANs.d.mts +0 -5
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { G as GenerateKeyAlgorithm, a as GenerateKeyOptions, b as GenerateKeyReturn, J as JWKParameters, c as GenerateJWKOptions, d as GenerateJWKReturn, N as JWK_PBES2, D as DeriveKeyOptions, e as DeriveKeyReturn, q as JWK_oct, v as JWK, K as KeyManagementAlgorithm, W as WrapKeyOptions, g as WrapKeyResult, U as UnwrapKeyOptions, T as JWKPEMAlgorithm, w as JWKSet, V as JoseHeaderParameters, C as CompositeKey, f as ContentEncryptionAlgorithm, S as JWKAlgorithm, H as JWK_AES_CBC_HMAC, I as JWK_AES_GCM, L as JWK_AES_GCM_KW, F as JWK_AES_KW, s as JWK_Asymmetric, R as JWK_Asymmetric_Algorithm, j as JWK_EC, O as JWK_ECDH_ES, A as JWK_ECDSA, i as JWK_EC_Private, h as JWK_EC_Public, x as JWK_HMAC, p as JWK_OKP, o as JWK_OKP_Private, n as JWK_OKP_Public, P as JWK_OKP_SIGN, u as JWK_Private, t as JWK_Public, m as JWK_RSA, B as JWK_RSA_ENC, z as JWK_RSA_PSS, l as JWK_RSA_Private, k as JWK_RSA_Public, y as JWK_RSA_SIGN, r as JWK_Symmetric, Q as JWK_Symmetric_Algorithm, Y as JWT, Z as JWTClaimValidationOptions, X as JWTClaims } from './unjwt.BCi3FEWr.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This is a fork of Jose library's utility functions.
|
|
5
|
-
* @source https://github.com/panva/jose/tree/69b7960c67e05be55fa2ec31c74b987696c20c60/src/lib/asn1.ts
|
|
6
|
-
* @license MIT https://github.com/panva/jose/blob/69b7960c67e05be55fa2ec31c74b987696c20c60/LICENSE.md
|
|
7
|
-
*/
|
|
8
|
-
/** Key Import Function options. */
|
|
9
|
-
interface KeyImportOptions {
|
|
10
|
-
/**
|
|
11
|
-
* The value to use as {@link !SubtleCrypto.importKey} `extractable` argument. Default is false for
|
|
12
|
-
* private keys, true otherwise.
|
|
13
|
-
*/
|
|
14
|
-
extractable?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Generates a cryptographic key for the specified algorithm.
|
|
19
|
-
*
|
|
20
|
-
* @param alg The JWA algorithm identifier (e.g., "HS256", "RS256", "A128GCM").
|
|
21
|
-
* @param options Configuration options for key generation.
|
|
22
|
-
* @returns A Promise resolving to the generated key (CryptoKey, CryptoKeyPair, or Uint8Array) or its JWK representation.
|
|
23
|
-
*/
|
|
24
|
-
declare function generateKey<TAlg extends GenerateKeyAlgorithm, TOptions extends GenerateKeyOptions>(alg: TAlg, options?: TOptions): Promise<GenerateKeyReturn<TAlg, TOptions>>;
|
|
25
|
-
/**
|
|
26
|
-
* Generates a Json Web Key (JWK) for the specified algorithm.
|
|
27
|
-
*
|
|
28
|
-
* @param alg The JWA algorithm identifier (e.g., "HS256", "RS256", "A128GCM").
|
|
29
|
-
* @param jwkParams Optional partial JWK to merge with the generated key, allowing overrides.
|
|
30
|
-
* @param options Configuration options for key generation.
|
|
31
|
-
* @returns A Promise resolving to the generated JWK or JWK pair representation.
|
|
32
|
-
*/
|
|
33
|
-
declare function generateJWK<TAlg extends GenerateKeyAlgorithm>(alg: TAlg, jwkParams?: Omit<JWKParameters, "alg" | "kty" | "key_ops" | "ext">, options?: GenerateJWKOptions): Promise<GenerateJWKReturn<TAlg>>;
|
|
34
|
-
/**
|
|
35
|
-
* Derives a key from a password using PBKDF2 as specified by PBES2 algorithms.
|
|
36
|
-
*
|
|
37
|
-
* @param password The password to derive the key from (string or Uint8Array).
|
|
38
|
-
* @param alg The PBES2 algorithm identifier (e.g., "PBES2-HS256+A128KW").
|
|
39
|
-
* @param options Configuration options including salt and iterations.
|
|
40
|
-
* @returns A Promise resolving to the derived key (CryptoKey) or its JWK_oct representation.
|
|
41
|
-
*/
|
|
42
|
-
declare function deriveKeyFromPassword<TAlg extends JWK_PBES2, TOptions extends DeriveKeyOptions>(password: string | Uint8Array<ArrayBuffer>, alg: TAlg, options: TOptions): Promise<DeriveKeyReturn<TOptions>>;
|
|
43
|
-
/**
|
|
44
|
-
* Derives a Json Web Key (JWK) from a password using PBKDF2 as specified by PBES2 algorithms.
|
|
45
|
-
*
|
|
46
|
-
* @param password The password to derive the key from (string or Uint8Array).
|
|
47
|
-
* @param alg The PBES2 algorithm identifier (e.g., "PBES2-HS256+A128KW").
|
|
48
|
-
* @param jwkParams Optional partial JWK to merge with the generated key, allowing overrides.
|
|
49
|
-
* @param options Configuration options including salt and iterations.
|
|
50
|
-
* @returns A Promise resolving to the derived JWK (JWK_oct).
|
|
51
|
-
*/
|
|
52
|
-
declare function deriveJWKFromPassword(password: string | Uint8Array<ArrayBuffer>, alg: JWK_PBES2, options: Omit<DeriveKeyOptions, "toJWK">, jwkParams?: Omit<JWKParameters, "alg" | "kty" | "key_ops" | "ext">): Promise<JWK_oct>;
|
|
53
|
-
/**
|
|
54
|
-
* Imports a key from various formats (CryptoKey, JWK, Uint8Array).
|
|
55
|
-
*
|
|
56
|
-
* - If `key` is a CryptoKey, it's returned directly.
|
|
57
|
-
* - If `key` is a Uint8Array, it's returned directly.
|
|
58
|
-
* - If `key` is a JWK_oct (symmetric key with 'k'), the raw key bytes are returned as Uint8Array.
|
|
59
|
-
* - If `key` is any other JWK type (asymmetric), the `alg` parameter is required, and a CryptoKey is returned.
|
|
60
|
-
*
|
|
61
|
-
* @param key The key to import.
|
|
62
|
-
* @param alg The algorithm hint, required when importing asymmetric JWKs.
|
|
63
|
-
* @returns A Promise resolving to the imported key as CryptoKey or Uint8Array.
|
|
64
|
-
*/
|
|
65
|
-
declare function importKey(key: string): Promise<Uint8Array<ArrayBuffer>>;
|
|
66
|
-
declare function importKey(key: Uint8Array<ArrayBuffer>): Promise<Uint8Array<ArrayBuffer>>;
|
|
67
|
-
declare function importKey(key: CryptoKey): Promise<CryptoKey>;
|
|
68
|
-
declare function importKey(key: JWK_oct): Promise<Uint8Array<ArrayBuffer>>;
|
|
69
|
-
declare function importKey(key: CryptoKey | JWK | Uint8Array<ArrayBuffer> | string, alg?: string): Promise<CryptoKey | Uint8Array<ArrayBuffer>>;
|
|
70
|
-
/**
|
|
71
|
-
* Exports a CryptoKey to a JWK (JSON Web Key) format.
|
|
72
|
-
*
|
|
73
|
-
* @param key The CryptoKey to export.
|
|
74
|
-
* @param jwk Optional partial JWK to merge with the exported key, allowing overrides.
|
|
75
|
-
* @returns A Promise resolving to the exported JWK.
|
|
76
|
-
*/
|
|
77
|
-
declare function exportKey<T extends JWK>(key: CryptoKey, jwk?: Partial<JWK>): Promise<T>;
|
|
78
|
-
/**
|
|
79
|
-
* Wraps a Content Encryption Key (CEK) using the specified algorithm and wrapping key.
|
|
80
|
-
*
|
|
81
|
-
* @param alg The JWA key management algorithm (e.g., "A128KW", "RSA-OAEP", "PBES2-HS256+A128KW").
|
|
82
|
-
* @param keyToWrap The key to be wrapped (CEK), typically a symmetric key as Uint8Array or CryptoKey.
|
|
83
|
-
* @param wrappingKey The key used to wrap the CEK (CryptoKey, JWK, or password string/Uint8Array for PBES2).
|
|
84
|
-
* @param options Additional options required by certain algorithms (e.g., p2s, p2c for PBES2).
|
|
85
|
-
* @returns A Promise resolving to an object containing the wrapped key and any necessary parameters (iv, tag, epk, etc.).
|
|
86
|
-
*/
|
|
87
|
-
declare function wrapKey(alg: KeyManagementAlgorithm, keyToWrap: CryptoKey | Uint8Array<ArrayBuffer>, wrappingKey: CryptoKey | JWK | string | Uint8Array<ArrayBuffer>, options?: WrapKeyOptions): Promise<WrapKeyResult>;
|
|
88
|
-
/**
|
|
89
|
-
* Unwraps a Content Encryption Key (CEK) using the specified algorithm and unwrapping key.
|
|
90
|
-
*
|
|
91
|
-
* @param alg The JWA key management algorithm (e.g., "A128KW", "RSA-OAEP", "PBES2-HS256+A128KW").
|
|
92
|
-
* @param wrappedKey The wrapped key (ciphertext) as Uint8Array.
|
|
93
|
-
* @param unwrappingKey The key used to unwrap the CEK (CryptoKey, JWK, or password string/Uint8Array for PBES2).
|
|
94
|
-
* @param options Additional options required by certain algorithms (e.g., iv, tag, p2s, p2c, epk).
|
|
95
|
-
* @returns A Promise resolving to the unwrapped key (CEK) as a CryptoKey or Uint8Array.
|
|
96
|
-
*/
|
|
97
|
-
declare function unwrapKey<T extends boolean | undefined = undefined>(alg: KeyManagementAlgorithm, wrappedKey: Uint8Array<ArrayBuffer>, unwrappingKey: CryptoKey | JWK | string | Uint8Array<ArrayBuffer>, options?: UnwrapKeyOptions & {
|
|
98
|
-
returnAs?: T;
|
|
99
|
-
}): Promise<T extends false ? Uint8Array<ArrayBuffer> : CryptoKey>;
|
|
100
|
-
/**
|
|
101
|
-
* Imports a key from a PEM-encoded string and converts it to a JWK.
|
|
102
|
-
*
|
|
103
|
-
* @param pem The PEM-encoded string.
|
|
104
|
-
* @param pemType The type of PEM encoding ('pkcs8' for private keys, 'spki' for public keys, 'x509' for certificates).
|
|
105
|
-
* @param alg The JWA algorithm identifier. This is crucial for `crypto.subtle.importKey`
|
|
106
|
-
* to understand the key's intended algorithm and for setting the 'alg' field in the resulting JWK.
|
|
107
|
-
* @param importOptions Options for the PEM import process (e.g., extractable for the CryptoKey).
|
|
108
|
-
* @param jwkExtras Additional properties to merge into the resulting JWK.
|
|
109
|
-
* @returns A Promise resolving to the imported key as a JWK.
|
|
110
|
-
*/
|
|
111
|
-
declare function importJWKFromPEM<T extends JWK>(pem: string, pemType: "pkcs8" | "spki" | "x509", alg: JWKPEMAlgorithm, importOptions?: KeyImportOptions, jwkExtras?: Partial<JWK>): Promise<T>;
|
|
112
|
-
/**
|
|
113
|
-
* Exports a JWK to a PEM-encoded string.
|
|
114
|
-
*
|
|
115
|
-
* @param jwk The JWK to export.
|
|
116
|
-
* @param pemFormat The desired PEM format ('pkcs8' for private keys, 'spki' for public keys).
|
|
117
|
-
* @param algForCryptoKeyImport If the JWK does not have an 'alg' property, this algorithm hint is
|
|
118
|
-
* required to correctly convert it to a CryptoKey first.
|
|
119
|
-
* @returns A Promise resolving to the PEM-encoded key string.
|
|
120
|
-
*/
|
|
121
|
-
declare function exportJWKToPEM(jwk: JWK, pemFormat: "pkcs8" | "spki", algForCryptoKeyImport?: JWKPEMAlgorithm): Promise<string>;
|
|
122
|
-
/**
|
|
123
|
-
* Retrieves a JWK (JSON Web Key) from a JWKSet based on a key ID (kid) or
|
|
124
|
-
* properties from a JOSE Header.
|
|
125
|
-
*
|
|
126
|
-
* @param jwkSet The JWKSet to search within.
|
|
127
|
-
* @param kidOrProtectedHeader Either a string representing the 'kid' (Key ID)
|
|
128
|
-
* or an object representing the JOSE Protected Header. If an object is
|
|
129
|
-
* provided, it must contain a 'kid' property. It can optionally contain
|
|
130
|
-
* 'alg' (Algorithm) and 'kty' (Key Type) to further refine the search.
|
|
131
|
-
* @returns The matching JWK from the set.
|
|
132
|
-
* @throws TypeError if `jwkSet` is invalid or `kidOrProtectedHeader` is not a
|
|
133
|
-
* string or a valid header object.
|
|
134
|
-
* @throws Error if no key is found matching the provided criteria, or if the
|
|
135
|
-
* header object is missing the 'kid' property.
|
|
136
|
-
*/
|
|
137
|
-
declare function getJWKFromSet(jwkSet: JWKSet, kidOrProtectedHeader: string | (JoseHeaderParameters & {
|
|
138
|
-
alg?: string;
|
|
139
|
-
kty?: string;
|
|
140
|
-
})): JWK;
|
|
141
|
-
|
|
142
|
-
declare const jwk_CompositeKey: typeof CompositeKey;
|
|
143
|
-
declare const jwk_ContentEncryptionAlgorithm: typeof ContentEncryptionAlgorithm;
|
|
144
|
-
declare const jwk_DeriveKeyOptions: typeof DeriveKeyOptions;
|
|
145
|
-
declare const jwk_DeriveKeyReturn: typeof DeriveKeyReturn;
|
|
146
|
-
declare const jwk_GenerateJWKOptions: typeof GenerateJWKOptions;
|
|
147
|
-
declare const jwk_GenerateJWKReturn: typeof GenerateJWKReturn;
|
|
148
|
-
declare const jwk_GenerateKeyAlgorithm: typeof GenerateKeyAlgorithm;
|
|
149
|
-
declare const jwk_GenerateKeyOptions: typeof GenerateKeyOptions;
|
|
150
|
-
declare const jwk_GenerateKeyReturn: typeof GenerateKeyReturn;
|
|
151
|
-
declare const jwk_JWK: typeof JWK;
|
|
152
|
-
declare const jwk_JWKAlgorithm: typeof JWKAlgorithm;
|
|
153
|
-
declare const jwk_JWKPEMAlgorithm: typeof JWKPEMAlgorithm;
|
|
154
|
-
declare const jwk_JWKParameters: typeof JWKParameters;
|
|
155
|
-
declare const jwk_JWKSet: typeof JWKSet;
|
|
156
|
-
declare const jwk_JWK_AES_CBC_HMAC: typeof JWK_AES_CBC_HMAC;
|
|
157
|
-
declare const jwk_JWK_AES_GCM: typeof JWK_AES_GCM;
|
|
158
|
-
declare const jwk_JWK_AES_GCM_KW: typeof JWK_AES_GCM_KW;
|
|
159
|
-
declare const jwk_JWK_AES_KW: typeof JWK_AES_KW;
|
|
160
|
-
declare const jwk_JWK_Asymmetric: typeof JWK_Asymmetric;
|
|
161
|
-
declare const jwk_JWK_Asymmetric_Algorithm: typeof JWK_Asymmetric_Algorithm;
|
|
162
|
-
declare const jwk_JWK_EC: typeof JWK_EC;
|
|
163
|
-
declare const jwk_JWK_ECDH_ES: typeof JWK_ECDH_ES;
|
|
164
|
-
declare const jwk_JWK_ECDSA: typeof JWK_ECDSA;
|
|
165
|
-
declare const jwk_JWK_EC_Private: typeof JWK_EC_Private;
|
|
166
|
-
declare const jwk_JWK_EC_Public: typeof JWK_EC_Public;
|
|
167
|
-
declare const jwk_JWK_HMAC: typeof JWK_HMAC;
|
|
168
|
-
declare const jwk_JWK_OKP: typeof JWK_OKP;
|
|
169
|
-
declare const jwk_JWK_OKP_Private: typeof JWK_OKP_Private;
|
|
170
|
-
declare const jwk_JWK_OKP_Public: typeof JWK_OKP_Public;
|
|
171
|
-
declare const jwk_JWK_OKP_SIGN: typeof JWK_OKP_SIGN;
|
|
172
|
-
declare const jwk_JWK_PBES2: typeof JWK_PBES2;
|
|
173
|
-
declare const jwk_JWK_Private: typeof JWK_Private;
|
|
174
|
-
declare const jwk_JWK_Public: typeof JWK_Public;
|
|
175
|
-
declare const jwk_JWK_RSA: typeof JWK_RSA;
|
|
176
|
-
declare const jwk_JWK_RSA_ENC: typeof JWK_RSA_ENC;
|
|
177
|
-
declare const jwk_JWK_RSA_PSS: typeof JWK_RSA_PSS;
|
|
178
|
-
declare const jwk_JWK_RSA_Private: typeof JWK_RSA_Private;
|
|
179
|
-
declare const jwk_JWK_RSA_Public: typeof JWK_RSA_Public;
|
|
180
|
-
declare const jwk_JWK_RSA_SIGN: typeof JWK_RSA_SIGN;
|
|
181
|
-
declare const jwk_JWK_Symmetric: typeof JWK_Symmetric;
|
|
182
|
-
declare const jwk_JWK_Symmetric_Algorithm: typeof JWK_Symmetric_Algorithm;
|
|
183
|
-
declare const jwk_JWK_oct: typeof JWK_oct;
|
|
184
|
-
declare const jwk_JWT: typeof JWT;
|
|
185
|
-
declare const jwk_JWTClaimValidationOptions: typeof JWTClaimValidationOptions;
|
|
186
|
-
declare const jwk_JWTClaims: typeof JWTClaims;
|
|
187
|
-
declare const jwk_JoseHeaderParameters: typeof JoseHeaderParameters;
|
|
188
|
-
declare const jwk_KeyManagementAlgorithm: typeof KeyManagementAlgorithm;
|
|
189
|
-
declare const jwk_UnwrapKeyOptions: typeof UnwrapKeyOptions;
|
|
190
|
-
declare const jwk_WrapKeyOptions: typeof WrapKeyOptions;
|
|
191
|
-
declare const jwk_WrapKeyResult: typeof WrapKeyResult;
|
|
192
|
-
declare const jwk_deriveJWKFromPassword: typeof deriveJWKFromPassword;
|
|
193
|
-
declare const jwk_deriveKeyFromPassword: typeof deriveKeyFromPassword;
|
|
194
|
-
declare const jwk_exportJWKToPEM: typeof exportJWKToPEM;
|
|
195
|
-
declare const jwk_exportKey: typeof exportKey;
|
|
196
|
-
declare const jwk_generateJWK: typeof generateJWK;
|
|
197
|
-
declare const jwk_generateKey: typeof generateKey;
|
|
198
|
-
declare const jwk_getJWKFromSet: typeof getJWKFromSet;
|
|
199
|
-
declare const jwk_importJWKFromPEM: typeof importJWKFromPEM;
|
|
200
|
-
declare const jwk_importKey: typeof importKey;
|
|
201
|
-
declare const jwk_unwrapKey: typeof unwrapKey;
|
|
202
|
-
declare const jwk_wrapKey: typeof wrapKey;
|
|
203
|
-
declare namespace jwk {
|
|
204
|
-
export {
|
|
205
|
-
jwk_CompositeKey as CompositeKey,
|
|
206
|
-
jwk_ContentEncryptionAlgorithm as ContentEncryptionAlgorithm,
|
|
207
|
-
jwk_DeriveKeyOptions as DeriveKeyOptions,
|
|
208
|
-
jwk_DeriveKeyReturn as DeriveKeyReturn,
|
|
209
|
-
jwk_GenerateJWKOptions as GenerateJWKOptions,
|
|
210
|
-
jwk_GenerateJWKReturn as GenerateJWKReturn,
|
|
211
|
-
jwk_GenerateKeyAlgorithm as GenerateKeyAlgorithm,
|
|
212
|
-
jwk_GenerateKeyOptions as GenerateKeyOptions,
|
|
213
|
-
jwk_GenerateKeyReturn as GenerateKeyReturn,
|
|
214
|
-
jwk_JWK as JWK,
|
|
215
|
-
jwk_JWKAlgorithm as JWKAlgorithm,
|
|
216
|
-
jwk_JWKPEMAlgorithm as JWKPEMAlgorithm,
|
|
217
|
-
jwk_JWKParameters as JWKParameters,
|
|
218
|
-
jwk_JWKSet as JWKSet,
|
|
219
|
-
jwk_JWK_AES_CBC_HMAC as JWK_AES_CBC_HMAC,
|
|
220
|
-
jwk_JWK_AES_GCM as JWK_AES_GCM,
|
|
221
|
-
jwk_JWK_AES_GCM_KW as JWK_AES_GCM_KW,
|
|
222
|
-
jwk_JWK_AES_KW as JWK_AES_KW,
|
|
223
|
-
jwk_JWK_Asymmetric as JWK_Asymmetric,
|
|
224
|
-
jwk_JWK_Asymmetric_Algorithm as JWK_Asymmetric_Algorithm,
|
|
225
|
-
jwk_JWK_EC as JWK_EC,
|
|
226
|
-
jwk_JWK_ECDH_ES as JWK_ECDH_ES,
|
|
227
|
-
jwk_JWK_ECDSA as JWK_ECDSA,
|
|
228
|
-
jwk_JWK_EC_Private as JWK_EC_Private,
|
|
229
|
-
jwk_JWK_EC_Public as JWK_EC_Public,
|
|
230
|
-
jwk_JWK_HMAC as JWK_HMAC,
|
|
231
|
-
jwk_JWK_OKP as JWK_OKP,
|
|
232
|
-
jwk_JWK_OKP_Private as JWK_OKP_Private,
|
|
233
|
-
jwk_JWK_OKP_Public as JWK_OKP_Public,
|
|
234
|
-
jwk_JWK_OKP_SIGN as JWK_OKP_SIGN,
|
|
235
|
-
jwk_JWK_PBES2 as JWK_PBES2,
|
|
236
|
-
jwk_JWK_Private as JWK_Private,
|
|
237
|
-
jwk_JWK_Public as JWK_Public,
|
|
238
|
-
jwk_JWK_RSA as JWK_RSA,
|
|
239
|
-
jwk_JWK_RSA_ENC as JWK_RSA_ENC,
|
|
240
|
-
jwk_JWK_RSA_PSS as JWK_RSA_PSS,
|
|
241
|
-
jwk_JWK_RSA_Private as JWK_RSA_Private,
|
|
242
|
-
jwk_JWK_RSA_Public as JWK_RSA_Public,
|
|
243
|
-
jwk_JWK_RSA_SIGN as JWK_RSA_SIGN,
|
|
244
|
-
jwk_JWK_Symmetric as JWK_Symmetric,
|
|
245
|
-
jwk_JWK_Symmetric_Algorithm as JWK_Symmetric_Algorithm,
|
|
246
|
-
jwk_JWK_oct as JWK_oct,
|
|
247
|
-
jwk_JWT as JWT,
|
|
248
|
-
jwk_JWTClaimValidationOptions as JWTClaimValidationOptions,
|
|
249
|
-
jwk_JWTClaims as JWTClaims,
|
|
250
|
-
jwk_JoseHeaderParameters as JoseHeaderParameters,
|
|
251
|
-
jwk_KeyManagementAlgorithm as KeyManagementAlgorithm,
|
|
252
|
-
jwk_UnwrapKeyOptions as UnwrapKeyOptions,
|
|
253
|
-
jwk_WrapKeyOptions as WrapKeyOptions,
|
|
254
|
-
jwk_WrapKeyResult as WrapKeyResult,
|
|
255
|
-
jwk_deriveJWKFromPassword as deriveJWKFromPassword,
|
|
256
|
-
jwk_deriveKeyFromPassword as deriveKeyFromPassword,
|
|
257
|
-
jwk_exportJWKToPEM as exportJWKToPEM,
|
|
258
|
-
jwk_exportKey as exportKey,
|
|
259
|
-
jwk_generateJWK as generateJWK,
|
|
260
|
-
jwk_generateKey as generateKey,
|
|
261
|
-
jwk_getJWKFromSet as getJWKFromSet,
|
|
262
|
-
jwk_importJWKFromPEM as importJWKFromPEM,
|
|
263
|
-
jwk_importKey as importKey,
|
|
264
|
-
jwk_unwrapKey as unwrapKey,
|
|
265
|
-
jwk_wrapKey as wrapKey,
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export { generateKey as a, deriveKeyFromPassword as b, importKey as c, deriveJWKFromPassword as d, exportJWKToPEM as e, exportKey as f, generateJWK as g, getJWKFromSet as h, importJWKFromPEM as i, jwk as j, unwrapKey as u, wrapKey as w };
|