Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
10
VApp/node_modules/pkcs7/src/unpad.js
generated
vendored
Normal file
10
VApp/node_modules/pkcs7/src/unpad.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* 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]);
|
||||
}
|
Reference in New Issue
Block a user