Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stablelib/sha512

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stablelib/sha512 - npm Package Compare versions

Comparing version 0.7.2 to 1.0.0

5

lib/sha512.d.ts

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

4

lib/sha512.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc