Duffer Derek

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

/**
 * 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
 */
export default function unpad(padded) {
  return padded.subarray(0, padded.byteLength - padded[padded.byteLength - 1]);
}

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