mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 20:16:33 +02:00
parent
e47f726abb
commit
ea30fb3370
2 changed files with 3 additions and 2 deletions
|
@ -88,7 +88,7 @@
|
|||
// create byte array with length dividable by 64 (512 bit)
|
||||
var neededLength = Math.ceil((length + 1 + 8) / 64) * 64;
|
||||
var messageByteArray = new Uint8Array(neededLength);
|
||||
messageByteArray.set(inputByteArray);
|
||||
messageByteArray.set(new Uint8Array(inputByteArray.buffer));
|
||||
var view = new DataView(messageByteArray.buffer);
|
||||
|
||||
// append 10...000000
|
||||
|
@ -172,7 +172,7 @@
|
|||
// create byte array with length dividable by 64 (512 bit)
|
||||
var neededLength = Math.ceil((length + 1 + 8) / 64) * 64;
|
||||
var messageByteArray = new Uint8Array(neededLength);
|
||||
messageByteArray.set(inputByteArray);
|
||||
messageByteArray.set(new Uint8Array(inputByteArray.buffer));
|
||||
var view = new DataView(messageByteArray.buffer);
|
||||
|
||||
// append 10...000000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue