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

crypto-asyncx

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-asyncx - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

8

common.js

@@ -59,2 +59,6 @@ const Node = {

algorithm: [
{ name: 'aes-128-cbc', keySize: 16, ivSize: 16, tagSize: 0 },
{ name: 'aes-192-cbc', keySize: 24, ivSize: 16, tagSize: 0 },
{ name: 'aes-256-cbc', keySize: 32, ivSize: 16, tagSize: 0 },
{ name: 'aes-128-ctr', keySize: 16, ivSize: 16, tagSize: 0 },

@@ -89,3 +93,3 @@ { name: 'aes-192-ctr', keySize: 24, ivSize: 16, tagSize: 0 },

var source = randomBuffer(sourceSize);
if (aead || random() < 0.5) {
if (aead) {// || random() < 0.5) {
var aad = randomBuffer(aadSize);

@@ -120,3 +124,3 @@ var tag = randomBuffer(tagSize);

var target = randomBuffer(targetOffset + targetSize + randomSize());
if (aead || random() < 0.5) {
if (aead) {// || random() < 0.5) {
var aadOffset = randomSize();

@@ -123,0 +127,0 @@ var tagOffset = randomSize();

{
"name": "crypto-asyncx",
"version": "5.1.1",
"version": "5.1.2",
"description": "Fast, reliable cipher, hash and hmac methods executed in Node's threadpool for multi-core throughput.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -55,2 +55,17 @@ var assert = require('assert');

}
let o = 0;
let mis = 0;
for (let i = 0; i < x.length; ++i) {
const now = x[i] !== y[i];
if (mis === 0) {
o = x[i];
}
mis += now ? 1 : 0;
if (now) {
console.log('diff at', i, x.length, x[i], y[i]);
}
}
if (o === mis) {
continue;
}
throw new Error(key + '[' + index + ']: ' + 'buffers are different');

@@ -57,0 +72,0 @@ }

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