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

http_ece

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http_ece - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

package.json~

15

ece.js

@@ -333,3 +333,3 @@ 'use strict';

var i = data.length - 1;
while(i > 0) {
while(i >= 0) {
if (data[i]) {

@@ -437,2 +437,6 @@ if (last) {

ciphertext.push(gcm.update(buffer));
if (!last && padding.length + buffer.length < header.rs) {
throw new Error('Unable to pad to record size');
}
} else {

@@ -525,2 +529,5 @@ ciphertext.push(gcm.update(buffer));

}
if (pad > 0 && recordPad === 0) {
++recordPad; // Deal with perverse case of rs=overhead+1 with padding.
}
pad -= recordPad;

@@ -534,4 +541,5 @@

} else {
last = end >= buffer.length && pad <= 0;
last = end >= buffer.length;
}
last = last && pad <= 0;
var block = encryptRecord(key, counter, buffer.slice(start, end),

@@ -544,5 +552,2 @@ recordPad, header, last);

}
if (pad) {
throw new Error('Unable to pad by requested amount, ' + pad + ' remaining');
}
return result;

@@ -549,0 +554,0 @@ }

{
"name": "http_ece",
"version": "0.7.1",
"version": "0.7.2",
"description": "Encrypted Content-Encoding for HTTP",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/martinthomson/encrypted-content-encoding",

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