Fix sha256 last 448 test

This commit is contained in:
Jordi Baylina
2019-12-11 06:55:23 +01:00
parent 3c2b566e68
commit 9941aac2f2
3 changed files with 7 additions and 10 deletions

View File

@@ -116,10 +116,10 @@ describe("SHA256 test", () => {
const testStr = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq";
const b = Buffer.from(testStr, 'utf8');
for (let i=0; i<64; i++) {
/* for (let i=0; i<64; i++) {
b[i] = i+1;
}
*/
const hash = crypto.createHash("sha256")
.update(b)
.digest("hex");