UNPKG

9.59 kBPlain TextView Raw
1/*!
2 * @overview es6-promise - a tiny implementation of Promises/A+.
3 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4 * @license Licensed under MIT license
5 * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
6 * @version v4.2.8+1e68dce6
7 */
8
9/*!
10 * The buffer module from node.js, for the browser.
11 *
12 * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
13 * @license MIT
14 */
15
16/*!
17 * The buffer module from node.js, for the browser.
18 *
19 * @author Feross Aboukhadijeh <https://feross.org>
20 * @license MIT
21 */
22
23/*!
24 * algorithms/aes-cbc-hmac-sha2.js - AES-CBC-HMAC-SHA2 Composited Encryption
25 *
26 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
27 */
28
29/*!
30 * algorithms/aes-gcm.js - AES-GCM Encryption and Key-Wrapping
31 *
32 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
33 */
34
35/*!
36 * algorithms/aes-kw.js - AES-KW Key-Wrapping
37 *
38 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
39 */
40
41/*!
42 * algorithms/concat.js - Concat Key Derivation
43 *
44 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
45 */
46
47/*!
48 * algorithms/constants.js - Constants used in Cryptographic Algorithms
49 *
50 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
51 */
52
53/*!
54 * algorithms/dir.js - Direct key mode
55 *
56 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
57 */
58
59/*!
60 * algorithms/ec-util.js - Elliptic Curve Utility Functions
61 *
62 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
63 */
64
65/*!
66 * algorithms/ecdh.js - Elliptic Curve Diffie-Hellman algorithms
67 *
68 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
69 */
70
71/*!
72 * algorithms/ecdsa.js - Elliptic Curve Digitial Signature Algorithms
73 *
74 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
75 */
76
77/*!
78 * algorithms/helpers.js - Internal functions and fields used in Cryptographic
79 * Algorithms
80 *
81 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
82 */
83
84/*!
85 * algorithms/hkdf.js - HMAC-based Extract-and-Expand Key Derivation
86 *
87 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
88 */
89
90/*!
91 * algorithms/hmac.js - HMAC-based "signatures"
92 *
93 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
94 */
95
96/*!
97 * algorithms/index.js - Cryptographic Algorithms Entry Point
98 *
99 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
100 */
101
102/*!
103 * algorithms/pbes2.js - Password-Based Encryption (v2) Algorithms
104 *
105 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
106 */
107
108/*!
109 * algorithms/rsa-util.js - RSA Utility Functions
110 *
111 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
112 */
113
114/*!
115 * algorithms/rsaes.js - RSA Signatures
116 *
117 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
118 */
119
120/*!
121 * algorithms/rsassa.js - RSA Signatures
122 *
123 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
124 */
125
126/*!
127 * algorithms/sha.js - Cryptographic Secure Hash Algorithms, versions 1 and 2
128 *
129 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
130 */
131
132/*!
133 * deps/ciphermodes/gcm/helpers.js - AES-GCM Helper Functions
134 *
135 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
136 */
137
138/*!
139 * deps/ciphermodes/gcm/index.js - AES-GCM implementation Entry Point
140 *
141 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
142 */
143
144/*!
145 * deps/ciphermodes/gcm/multipliers.js - AES-GCM Multipliers
146 *
147 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
148 */
149
150/*!
151 * deps/ciphermodes/helpers.js - Cipher Helper Functions
152 *
153 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
154 */
155
156/*!
157 * deps/ciphermodes/pack.js - Pack/Unpack Functions
158 *
159 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
160 */
161
162/*!
163 * deps/forge.js - Forge Package Customization
164 *
165 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
166 */
167
168/*!
169 * index.js - Main Entry Point
170 *
171 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
172 */
173
174/*!
175 * jwe/decrypt.js - Decrypt from a JWE
176 *
177 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
178 */
179
180/*!
181 * jwe/defaults.js - Defaults for JWEs
182 *
183 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
184 */
185
186/*!
187 * jwe/encrypt.js - Encrypt to a JWE
188 *
189 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
190 */
191
192/*!
193 * jwe/helpers.js - JWE Internal Helper Functions
194 *
195 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
196 */
197
198/*!
199 * jwe/index.js - JSON Web Encryption (JWE) Entry Point
200 *
201 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
202 */
203
204/*!
205 * jwk/basekey.js - JWK Key Base Class Implementation
206 *
207 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
208 */
209
210/*!
211 * jwk/constants.js - Constants for JWKs
212 *
213 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
214 */
215
216/*!
217 * jwk/helpers.js - JWK Internal Helper Functions and Constants
218 *
219 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
220 */
221
222/*!
223 * jwk/index.js - JSON Web Key (JWK) Entry Point
224 *
225 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
226 */
227
228/*!
229 * jwk/keystore.js - JWK KeyStore Implementation
230 *
231 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
232 */
233
234/*!
235 * jwk/octkey.js - Symmetric Octet Key Representation
236 *
237 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
238 */
239
240/*!
241 * jwk/rsa.js - RSA Key Representation
242 *
243 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
244 */
245
246/*!
247 * jws/defaults.js - Defaults for JWSs
248 *
249 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
250 */
251
252/*!
253 * jws/helpers.js - JWS Internal Helper Functions
254 *
255 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
256 */
257
258/*!
259 * jws/index.js - JSON Web Signature (JWS) Entry Point
260 *
261 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
262 */
263
264/*!
265 * jws/sign.js - Sign to JWS
266 *
267 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
268 */
269
270/*!
271 * jws/verify.js - Verifies from a JWS
272 *
273 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
274 */
275
276/*!
277 * parse/compact.js - JOSE Compact Serialization Parser
278 *
279 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
280 */
281
282/*!
283 * parse/compact.js - JOSE JSON Serialization Parser
284 *
285 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
286 */
287
288/*!
289 * parse/index.js - JOSE Parser Entry Point
290 *
291 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
292 */
293
294/*!
295 * util/algconfig.js - Functions for managing algorithm set options
296 *
297 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
298 */
299
300/*!
301 * util/base64url.js - Implementation of web-safe Base64 Encoder/Decoder
302 *
303 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
304 */
305
306/*!
307 * util/databuffer.js - Forge-compatible Buffer based on Node.js Buffers
308 *
309 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
310 */
311
312/*!
313 * util/index.js - Utilities Entry Point
314 *
315 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
316 */
317
318/*!
319 * util/utf8.js - Implementation of UTF-8 Encoder/Decoder
320 *
321 * Copyright (c) 2015 Cisco Systems, Inc. See LICENSE file.
322 */
323
324/*!
325Copyright (c) 2011, Yahoo! Inc. All rights reserved.
326Code licensed under the BSD License:
327http://developer.yahoo.com/yui/license.html
328version: 2.9.0
329*/
330
331/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib
332 */
333
334/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
335 */
336
337/*! *****************************************************************************
338Copyright (C) Microsoft. All rights reserved.
339Licensed under the Apache License, Version 2.0 (the "License"); you may not use
340this file except in compliance with the License. You may obtain a copy of the
341License at http://www.apache.org/licenses/LICENSE-2.0
342
343THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
344KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
345WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
346MERCHANTABLITY OR NON-INFRINGEMENT.
347
348See the Apache Version 2.0 License for specific language governing permissions
349and limitations under the License.
350***************************************************************************** */
351
352/*! *****************************************************************************
353Copyright (c) Microsoft Corporation.
354
355Permission to use, copy, modify, and/or distribute this software for any
356purpose with or without fee is hereby granted.
357
358THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
359REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
360AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
361INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
362LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
363OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
364PERFORMANCE OF THIS SOFTWARE.
365***************************************************************************** */
366
367/*! CryptoJS v3.1.2 core-fix.js
368 * code.google.com/p/crypto-js
369 * (c) 2009-2013 by Jeff Mott. All rights reserved.
370 * code.google.com/p/crypto-js/wiki/License
371 * THIS IS FIX of 'core.js' to fix Hmac issue.
372 * https://code.google.com/p/crypto-js/issues/detail?id=84
373 * https://crypto-js.googlecode.com/svn-history/r667/branches/3.x/src/core.js
374 */
375
376/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
377 */
378
379/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
380
381/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
382
383/** @license URI.js v4.4.0 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */