@stablelib/sha512
Advanced tools
Comparing version
@@ -0,1 +1,4 @@ | ||
/** | ||
* Package sha512 implements SHA-2-512 cryptographic hash function. | ||
*/ | ||
import { SerializableHash } from "@stablelib/hash"; | ||
@@ -5,3 +8,3 @@ export declare const DIGEST_LENGTH = 64; | ||
/** | ||
* SHA2-512 cryptographic hash algorithm. | ||
* SHA-2-512 cryptographic hash algorithm. | ||
*/ | ||
@@ -8,0 +11,0 @@ export declare class SHA512 implements SerializableHash { |
@@ -10,5 +10,5 @@ "use strict"; | ||
/** | ||
* SHA2-512 cryptographic hash algorithm. | ||
* SHA-2-512 cryptographic hash algorithm. | ||
*/ | ||
var SHA512 = (function () { | ||
var SHA512 = /** @class */ (function () { | ||
function SHA512() { | ||
@@ -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/sha512", | ||
"version": "0.7.2", | ||
"version": "1.0.0", | ||
"description": "SHA-512 cryptographic hash function", | ||
@@ -18,10 +18,11 @@ "main": "./lib/sha512.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 sha512 implements SHA-2-512 cryptographic hash function. | ||
*/ | ||
import { SerializableHash } from "@stablelib/hash"; | ||
@@ -12,3 +16,3 @@ import { readUint32BE, writeUint32BE } from "@stablelib/binary"; | ||
/** | ||
* SHA2-512 cryptographic hash algorithm. | ||
* SHA-2-512 cryptographic hash algorithm. | ||
*/ | ||
@@ -15,0 +19,0 @@ export class SHA512 implements SerializableHash { |
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
1857
0.43%1
-50%129656
-0.13%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated