@stablelib/sha256
Advanced tools
Comparing version 0.7.2 to 1.0.0
@@ -0,1 +1,4 @@ | ||
/** | ||
* Package sha256 implements SHA-2-256 cryptographic hash function. | ||
*/ | ||
import { SerializableHash } from "@stablelib/hash"; | ||
@@ -2,0 +5,0 @@ export declare const DIGEST_LENGTH = 32; |
@@ -12,3 +12,3 @@ "use strict"; | ||
*/ | ||
var SHA256 = (function () { | ||
var SHA256 = /** @class */ (function () { | ||
function SHA256() { | ||
@@ -15,0 +15,0 @@ /** Length of hash output */ |
@@ -320,3 +320,3 @@ "use strict"; | ||
} | ||
for (var i = 0; i < 12; i++) { | ||
for (var i = 0; i < 12; i++) { // 3 GiB | ||
buf[0] = i & 0xff; | ||
@@ -323,0 +323,0 @@ h.update(buf); |
{ | ||
"name": "@stablelib/sha256", | ||
"version": "0.7.2", | ||
"version": "1.0.0", | ||
"description": "SHA-256 cryptographic hash function", | ||
@@ -18,10 +18,11 @@ "main": "./lib/sha256.js", | ||
"dependencies": { | ||
"@stablelib/binary": "^0.7.2", | ||
"@stablelib/hash": "^0.5.0", | ||
"@stablelib/wipe": "^0.5.0" | ||
"@stablelib/binary": "^1.0.0", | ||
"@stablelib/hash": "^1.0.0", | ||
"@stablelib/wipe": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@stablelib/base64": "^0.7.2", | ||
"@stablelib/benchmark": "^0.5.0" | ||
} | ||
"@stablelib/base64": "^1.0.0", | ||
"@stablelib/benchmark": "^1.0.0" | ||
}, | ||
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6" | ||
} |
// Copyright (C) 2016 Dmitry Chestnykh | ||
// MIT License. See LICENSE file for details. | ||
/** | ||
* Package sha256 implements SHA-2-256 cryptographic hash function. | ||
*/ | ||
import { SerializableHash } from "@stablelib/hash"; | ||
@@ -5,0 +9,0 @@ import { readUint32BE, writeUint32BE } from "@stablelib/binary"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1277
1
71432
+ Added@stablelib/binary@1.0.1(transitive)
+ Added@stablelib/hash@1.0.1(transitive)
+ Added@stablelib/int@1.0.1(transitive)
+ Added@stablelib/wipe@1.0.1(transitive)
- Removed@stablelib/binary@0.7.2(transitive)
- Removed@stablelib/hash@0.5.0(transitive)
- Removed@stablelib/int@0.5.0(transitive)
- Removed@stablelib/wipe@0.5.0(transitive)
Updated@stablelib/binary@^1.0.0
Updated@stablelib/hash@^1.0.0
Updated@stablelib/wipe@^1.0.0