Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
21
VApp/node_modules/pkcs7/dist/pkcs7.unpad.js
generated
vendored
Normal file
21
VApp/node_modules/pkcs7/dist/pkcs7.unpad.js
generated
vendored
Normal 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;
|
||||
|
||||
}));
|
||||
Reference in New Issue
Block a user