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

@polkadot/util-crypto

Package Overview
Dependencies
Maintainers
1
Versions
1357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/util-crypto - npm Package Compare versions

Comparing version 0.21.1 to 0.21.2

20

blake2/index.js

@@ -8,15 +8,3 @@ "use strict";

const blake2AsHex128 = require('./asHex128');
const blake2AsHex256 = require('./asHex256');
const blake2AsHex512 = require('./asHex512');
const blake2AsU8a = require('./asU8a');
const blake2AsU8a128 = require('./asU8a128');
const blake2AsU8a256 = require('./asU8a256');
const blake2AsU8a512 = require('./asU8a512');
/**

@@ -29,9 +17,3 @@ @summary Create blake2b values with specified bitlengths

blake2AsHex,
blake2AsHex128,
blake2AsHex256,
blake2AsHex512,
blake2AsU8a,
blake2AsU8a128,
blake2AsU8a256,
blake2AsU8a512
blake2AsU8a
};

4

kdf/asU8a.js

@@ -10,3 +10,3 @@ "use strict";

const blake2AsU8a256 = require('../blake2/asU8a256');
const blake2AsU8a = require('../blake2/asU8a');

@@ -34,3 +34,3 @@ const randomAsU8a = require('../random/asU8a');

for (let count = 0; count < rounds; count++) {
key = blake2AsU8a256(key, salt);
key = blake2AsU8a(key, 256, salt);
}

@@ -37,0 +37,0 @@

@@ -8,3 +8,3 @@ "use strict";

const blake2AsU8a256 = require('../../blake2/asU8a256');
const blake2AsU8a = require('../../blake2/asU8a');

@@ -26,3 +26,3 @@ const fromSeed = require('./fromSeed');

module.exports = function naclKeypairFromString(value) {
return fromSeed(blake2AsU8a256(u8aFromUtf8(value)));
return fromSeed(blake2AsU8a(u8aFromUtf8(value), 256));
};
{
"name": "@polkadot/util-crypto",
"version": "0.21.1",
"version": "0.21.2",
"description": "A collection of useful crypto utilities for @polkadot",

@@ -33,3 +33,3 @@ "main": "index.js",

"@babel/runtime": "^7.0.0-beta.47",
"@polkadot/util": "^0.21.1",
"@polkadot/util": "^0.21.2",
"blakejs": "^1.1.0",

@@ -36,0 +36,0 @@ "js-sha3": "^0.7.0",

@@ -8,11 +8,3 @@ "use strict";

const xxhashAsHex128 = require('./asHex128');
const xxhashAsHex256 = require('./asHex256');
const xxhashAsU8a = require('./asU8a');
const xxhashAsU8a128 = require('./asU8a128');
const xxhashAsU8a256 = require('./asU8a256');
/**

@@ -25,7 +17,3 @@ @summary Create xxhash64 values with specified bitlengths

xxhashAsHex,
xxhashAsHex128,
xxhashAsHex256,
xxhashAsU8a,
xxhashAsU8a128,
xxhashAsU8a256
xxhashAsU8a
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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