@stablelib/blake2xs
Advanced tools
Comparing version 0.10.4 to 1.0.0
@@ -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?; |
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
957504
8180
1
+ Added@stablelib/binary@1.0.1(transitive)
+ Added@stablelib/blake2s@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/blake2s@0.10.4(transitive)
- Removed@stablelib/hash@0.5.0(transitive)
- Removed@stablelib/int@0.5.0(transitive)
- Removed@stablelib/wipe@0.5.0(transitive)
Updated@stablelib/blake2s@^1.0.0
Updated@stablelib/hash@^1.0.0
Updated@stablelib/wipe@^1.0.0