This commit is contained in:
BuildTools
2024-10-22 18:22:27 +02:00
parent e8e9f3fe1f
commit 9f8a167db2

View File

@@ -365,6 +365,13 @@ export class Session {
return forge.random.getBytesSync(16)
}
_intToUint8Array(num) {
const buffer = new ArrayBuffer(4);
const view = new DataView(buffer);
view.setUint32(0, num, false);
return new Uint8Array(buffer);
}
getPSSH() {
const dataLength = this._pssh.length;
const totalLength = dataLength + 32;