Duffer Derek

Current Path : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/pkcs7/dist/
Upload File :
Current File : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/pkcs7/dist/pkcs7.unpad.js

/*! @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;

}));

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists