First release

This commit is contained in:
Owen Quinlan 2021-07-02 19:29:34 +10:00
commit fa6c85266e
2339 changed files with 761050 additions and 0 deletions

47
node_modules/pkcs7/dist/pkcs7.cjs.js generated vendored Normal file
View file

@ -0,0 +1,47 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/*
* pkcs7.pad
* https://github.com/brightcove/pkcs7
*
* Copyright (c) 2014 Brightcove
* Licensed under the apache2 license.
*/
var PADDING;
/**
* Returns a new Uint8Array that is padded with PKCS#7 padding.
*
* @param plaintext {Uint8Array} the input bytes before encryption
* @return {Uint8Array} the padded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function pad(plaintext) {
var padding = PADDING[plaintext.byteLength % 16 || 0];
var result = new Uint8Array(plaintext.byteLength + padding.length);
result.set(plaintext);
result.set(padding, plaintext.byteLength);
return result;
} // pre-define the padding values
PADDING = [[16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16], [15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13], [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [9, 9, 9, 9, 9, 9, 9, 9, 9], [8, 8, 8, 8, 8, 8, 8, 8], [7, 7, 7, 7, 7, 7, 7], [6, 6, 6, 6, 6, 6], [5, 5, 5, 5, 5], [4, 4, 4, 4], [3, 3, 3], [2, 2], [1]];
/**
* Returns the subarray of a Uint8Array without PKCS#7 padding.
*
* @param padded {Uint8Array} unencrypted bytes that have been padded
* @return {Uint8Array} the unpadded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function unpad(padded) {
return padded.subarray(0, padded.byteLength - padded[padded.byteLength - 1]);
}
var version = "1.0.4";
exports.VERSION = version;
exports.pad = pad;
exports.unpad = unpad;

41
node_modules/pkcs7/dist/pkcs7.es.js generated vendored Normal file
View file

@ -0,0 +1,41 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
/*
* pkcs7.pad
* https://github.com/brightcove/pkcs7
*
* Copyright (c) 2014 Brightcove
* Licensed under the apache2 license.
*/
var PADDING;
/**
* Returns a new Uint8Array that is padded with PKCS#7 padding.
*
* @param plaintext {Uint8Array} the input bytes before encryption
* @return {Uint8Array} the padded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function pad(plaintext) {
var padding = PADDING[plaintext.byteLength % 16 || 0];
var result = new Uint8Array(plaintext.byteLength + padding.length);
result.set(plaintext);
result.set(padding, plaintext.byteLength);
return result;
} // pre-define the padding values
PADDING = [[16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16], [15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13], [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [9, 9, 9, 9, 9, 9, 9, 9, 9], [8, 8, 8, 8, 8, 8, 8, 8], [7, 7, 7, 7, 7, 7, 7], [6, 6, 6, 6, 6, 6], [5, 5, 5, 5, 5], [4, 4, 4, 4], [3, 3, 3], [2, 2], [1]];
/**
* Returns the subarray of a Uint8Array without PKCS#7 padding.
*
* @param padded {Uint8Array} unencrypted bytes that have been padded
* @return {Uint8Array} the unpadded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function unpad(padded) {
return padded.subarray(0, padded.byteLength - padded[padded.byteLength - 1]);
}
var version = "1.0.4";
export { version as VERSION, pad, unpad };

53
node_modules/pkcs7/dist/pkcs7.js generated vendored Normal file
View file

@ -0,0 +1,53 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.pkcs7 = {}));
}(this, function (exports) { 'use strict';
/*
* pkcs7.pad
* https://github.com/brightcove/pkcs7
*
* Copyright (c) 2014 Brightcove
* Licensed under the apache2 license.
*/
var PADDING;
/**
* Returns a new Uint8Array that is padded with PKCS#7 padding.
*
* @param plaintext {Uint8Array} the input bytes before encryption
* @return {Uint8Array} the padded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function pad(plaintext) {
var padding = PADDING[plaintext.byteLength % 16 || 0];
var result = new Uint8Array(plaintext.byteLength + padding.length);
result.set(plaintext);
result.set(padding, plaintext.byteLength);
return result;
} // pre-define the padding values
PADDING = [[16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16], [15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13], [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [9, 9, 9, 9, 9, 9, 9, 9, 9], [8, 8, 8, 8, 8, 8, 8, 8], [7, 7, 7, 7, 7, 7, 7], [6, 6, 6, 6, 6, 6], [5, 5, 5, 5, 5], [4, 4, 4, 4], [3, 3, 3], [2, 2], [1]];
/**
* Returns the subarray of a Uint8Array without PKCS#7 padding.
*
* @param padded {Uint8Array} unencrypted bytes that have been padded
* @return {Uint8Array} the unpadded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function unpad(padded) {
return padded.subarray(0, padded.byteLength - padded[padded.byteLength - 1]);
}
var version = "1.0.4";
exports.VERSION = version;
exports.pad = pad;
exports.unpad = unpad;
Object.defineProperty(exports, '__esModule', { value: true });
}));

2
node_modules/pkcs7/dist/pkcs7.min.js generated vendored Normal file
View file

@ -0,0 +1,2 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).pkcs7={})}(this,function(e){"use strict";var t;t=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]];e.VERSION="1.0.4",e.pad=function(e){var n=t[e.byteLength%16||0],r=new Uint8Array(e.byteLength+n.length);return r.set(e),r.set(n,e.byteLength),r},e.unpad=function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])},Object.defineProperty(e,"__esModule",{value:!0})});

36
node_modules/pkcs7/dist/pkcs7.pad.js generated vendored Normal file
View file

@ -0,0 +1,36 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, (global.pkcs7 = global.pkcs7 || {}, global.pkcs7.pad = factory()));
}(this, function () { 'use strict';
/*
* pkcs7.pad
* https://github.com/brightcove/pkcs7
*
* Copyright (c) 2014 Brightcove
* Licensed under the apache2 license.
*/
var PADDING;
/**
* Returns a new Uint8Array that is padded with PKCS#7 padding.
*
* @param plaintext {Uint8Array} the input bytes before encryption
* @return {Uint8Array} the padded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function pad(plaintext) {
var padding = PADDING[plaintext.byteLength % 16 || 0];
var result = new Uint8Array(plaintext.byteLength + padding.length);
result.set(plaintext);
result.set(padding, plaintext.byteLength);
return result;
} // pre-define the padding values
PADDING = [[16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16], [15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15], [14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14], [13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13], [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10], [9, 9, 9, 9, 9, 9, 9, 9, 9], [8, 8, 8, 8, 8, 8, 8, 8], [7, 7, 7, 7, 7, 7, 7], [6, 6, 6, 6, 6, 6], [5, 5, 5, 5, 5], [4, 4, 4, 4], [3, 3, 3], [2, 2], [1]];
return pad;
}));

2
node_modules/pkcs7/dist/pkcs7.pad.min.js generated vendored Normal file
View file

@ -0,0 +1,2 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e=e||self).pkcs7=e.pkcs7||{},e.pkcs7.pad=t())}(this,function(){"use strict";var e;return e=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],function(t){var n=e[t.byteLength%16||0],f=new Uint8Array(t.byteLength+n.length);return f.set(t),f.set(n,t.byteLength),f}});

21
node_modules/pkcs7/dist/pkcs7.unpad.js generated vendored Normal file
View file

@ -0,0 +1,21 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, (global.pkcs7 = global.pkcs7 || {}, global.pkcs7.unpad = factory()));
}(this, function () { 'use strict';
/**
* Returns the subarray of a Uint8Array without PKCS#7 padding.
*
* @param padded {Uint8Array} unencrypted bytes that have been padded
* @return {Uint8Array} the unpadded bytes
* @see http://tools.ietf.org/html/rfc5652
*/
function unpad(padded) {
return padded.subarray(0, padded.byteLength - padded[padded.byteLength - 1]);
}
return unpad;
}));

2
node_modules/pkcs7/dist/pkcs7.unpad.min.js generated vendored Normal file
View file

@ -0,0 +1,2 @@
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e=e||self).pkcs7=e.pkcs7||{},e.pkcs7.unpad=t())}(this,function(){"use strict";return function(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}});