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

@stablelib/blake2xs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stablelib/blake2xs - npm Package Compare versions

Comparing version 0.10.4 to 1.0.0

9

blake2xs.ts

@@ -5,2 +5,6 @@ import { Hash } from "@stablelib/hash";

/**
* Package blake2xs implements BLAKE2Xs extensible output function (XOF).
*/
export { BLOCK_SIZE };

@@ -11,3 +15,3 @@

/** Indicates when ouput length is unknown */
/** Indicates unknown output length */
const UNKNOWN_DIGEST_LENGTH = 65535;

@@ -23,2 +27,5 @@

/**
* BLAKE2Xs extensible output function.
*/
export class BLAKE2Xs implements Hash {

@@ -25,0 +32,0 @@ readonly blockSize = BLOCK_SIZE;

import { Hash } from "@stablelib/hash";
import { BLOCK_SIZE, Config } from "@stablelib/blake2s";
/**
* Package blake2xs implements BLAKE2Xs extensible output function (XOF).
*/
export { BLOCK_SIZE };
/** Maximum output length */
export declare const MAX_DIGEST_LENGTH = 65534;
/**
* BLAKE2Xs extensible output function.
*/
export declare class BLAKE2Xs implements Hash {
digestLength: number;
readonly blockSize: number;
readonly blockSize = 64;
private _hash;

@@ -10,0 +16,0 @@ private _h0?;

28

lib/blake2xs.js
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -16,3 +19,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

exports.MAX_DIGEST_LENGTH = 65534;
/** Indicates when ouput length is unknown */
/** Indicates unknown output length */
var UNKNOWN_DIGEST_LENGTH = 65535;

@@ -26,3 +29,6 @@ function nodeOffsetWithXOFDigestLength(nodeOffset, digestLength) {

}
var BLAKE2Xs = (function () {
/**
* BLAKE2Xs extensible output function.
*/
var BLAKE2Xs = /** @class */ (function () {
/**

@@ -43,3 +49,3 @@ * Creates a new BLAKE2Xs instance with the given digest length. If digest

}
var rootConfig = __assign({}, config, { tree: (config && config.tree) ? config.tree : {
var rootConfig = __assign(__assign({}, config), { tree: (config && config.tree) ? config.tree : {
fanout: 1,

@@ -55,3 +61,3 @@ maxDepth: 1,

this._hash = new blake2s_1.BLAKE2s(blake2s_1.DIGEST_LENGTH, rootConfig);
this._outConfig = __assign({}, rootConfig, { key: undefined, tree: {
this._outConfig = __assign(__assign({}, rootConfig), { key: undefined, tree: {
fanout: 0,

@@ -58,0 +64,0 @@ maxDepth: 0,

{
"name": "@stablelib/blake2xs",
"version": "0.10.4",
"version": "1.0.0",
"description": "BLAKE2xs cryptographic extended output function (XOF)",

@@ -18,11 +18,12 @@ "main": "./lib/blake2xs.js",

"dependencies": {
"@stablelib/blake2s": "^0.10.4",
"@stablelib/hash": "^0.5.0",
"@stablelib/wipe": "^0.5.0"
"@stablelib/blake2s": "^1.0.0",
"@stablelib/hash": "^1.0.0",
"@stablelib/wipe": "^1.0.0"
},
"devDependencies": {
"@stablelib/benchmark": "^0.5.0",
"@stablelib/bytes": "^0.5.0",
"@stablelib/hex": "^0.5.0"
}
"@stablelib/benchmark": "^1.0.0",
"@stablelib/bytes": "^1.0.0",
"@stablelib/hex": "^1.0.0"
},
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6"
}

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