Socket
Socket
Sign inDemoInstall

webcrypto-core

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webcrypto-core - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

13

build/webcrypto-core.es.js

@@ -968,3 +968,14 @@ /*!

toWebCryptoSignature(pointSize) {
pointSize !== null && pointSize !== void 0 ? pointSize : (pointSize = Math.max(this.r.byteLength, this.s.byteLength) * 8);
if (!pointSize) {
const maxPointLength = Math.max(this.r.byteLength, this.s.byteLength);
if (maxPointLength <= 32) {
pointSize = 256;
}
else if (maxPointLength <= 48) {
pointSize = 384;
}
else {
pointSize = 521;
}
}
const signature = EcUtils.encodeSignature(this, pointSize);

@@ -971,0 +982,0 @@ return signature.buffer;

@@ -988,3 +988,14 @@ /*!

toWebCryptoSignature(pointSize) {
pointSize !== null && pointSize !== void 0 ? pointSize : (pointSize = Math.max(this.r.byteLength, this.s.byteLength) * 8);
if (!pointSize) {
const maxPointLength = Math.max(this.r.byteLength, this.s.byteLength);
if (maxPointLength <= 32) {
pointSize = 256;
}
else if (maxPointLength <= 48) {
pointSize = 384;
}
else {
pointSize = 521;
}
}
const signature = EcUtils.encodeSignature(this, pointSize);

@@ -991,0 +1002,0 @@ return signature.buffer;

23

package.json
{
"name": "webcrypto-core",
"version": "1.8.0",
"version": "1.8.1",
"description": "Common layer to be used by crypto libraries based on WebCrypto API for input validation.",

@@ -41,23 +41,22 @@ "main": "build/webcrypto-core.js",

"dependencies": {
"@peculiar/asn1-schema": "^2.3.8",
"@peculiar/asn1-schema": "^2.3.13",
"@peculiar/json-schema": "^1.1.12",
"asn1js": "^3.0.1",
"asn1js": "^3.0.5",
"pvtsutils": "^1.3.5",
"tslib": "^2.6.2"
"tslib": "^2.7.0"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.12",
"@types/mocha": "^10.0.9",
"@types/node": "^22.7.5",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"coveralls": "^3.1.1",
"eslint": "^8.57.0",
"mocha": "^10.4.0",
"nyc": "^15.1.0",
"rimraf": "^5.0.7",
"rollup": "^4.18.0",
"mocha": "^10.7.3",
"nyc": "^17.1.0",
"rimraf": "^6.0.1",
"rollup": "^4.24.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-typescript2": "^0.36.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
"typescript": "^5.6.2"
},

@@ -64,0 +63,0 @@ "author": "PeculiarVentures",

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