1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Fixed md5 and sha256 hashing

Fixes #315.
This commit is contained in:
kkapsner 2019-02-10 02:49:58 +01:00
parent e47f726abb
commit ea30fb3370
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -7,6 +7,7 @@ Version 0.5.8:
fixes:
- after reset the hidden settings and expanded views were not reset
- audio cache did not work properly
known issues:
- if a data URL is blocked the page action button does not appear