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.3.0 to 1.4.0

2

build/types/subtle.d.ts

@@ -8,3 +8,3 @@ import { ProviderCrypto } from "./provider";

static isHashedAlgorithm(data: any): data is HashedAlgorithm;
protected providers: ProviderStorage;
providers: ProviderStorage;
digest(algorithm: AlgorithmIdentifier, data: BufferSource, ...args: any[]): Promise<ArrayBuffer>;

@@ -11,0 +11,0 @@ generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], ...args: any[]): Promise<CryptoKeyPair>;

@@ -467,9 +467,6 @@ /**

this.checkRequiredProperty(algorithm, "modulusLength");
switch (algorithm.modulusLength) {
case 1024:
case 2048:
case 4096:
break;
default:
throw new TypeError("modulusLength: Must be 1024, 2048, or 4096");
if (algorithm.modulusLength % 8
|| algorithm.modulusLength < 256
|| algorithm.modulusLength > 16384) {
throw new TypeError("The modulus length must be a multiple of 8 bits and >= 256 and <= 16384");
}

@@ -476,0 +473,0 @@ }

@@ -490,9 +490,6 @@ /**

this.checkRequiredProperty(algorithm, "modulusLength");
switch (algorithm.modulusLength) {
case 1024:
case 2048:
case 4096:
break;
default:
throw new TypeError("modulusLength: Must be 1024, 2048, or 4096");
if (algorithm.modulusLength % 8
|| algorithm.modulusLength < 256
|| algorithm.modulusLength > 16384) {
throw new TypeError("The modulus length must be a multiple of 8 bits and >= 256 and <= 16384");
}

@@ -499,0 +496,0 @@ }

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

@@ -49,3 +49,3 @@ "main": "build/webcrypto-core.js",

"dependencies": {
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.44",
"@peculiar/json-schema": "^1.1.12",

@@ -59,3 +59,3 @@ "asn1js": "^2.1.1",

"@types/mocha": "^9.0.0",
"@types/node": "^16.11.4",
"@types/node": "^16.11.10",
"coveralls": "^3.1.1",

@@ -65,7 +65,7 @@ "mocha": "^9.1.3",

"rimraf": "^3.0.2",
"rollup": "^2.58.1",
"rollup-plugin-typescript2": "^0.30.0",
"rollup": "^2.60.1",
"rollup-plugin-typescript2": "^0.31.1",
"ts-node": "^10.4.0",
"tslint": "^6.1.3",
"typescript": "^4.4.4"
"typescript": "^4.5.2"
},

@@ -90,2 +90,3 @@ "author": "PeculiarVentures",

"reporter": [
"lcov",
"text-summary",

@@ -92,0 +93,0 @@ "html"

[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/PeculiarVentures/webcrypto-core/master/LICENSE)
[![Build Status](https://travis-ci.org/PeculiarVentures/webcrypto-core.svg?branch=master)](https://travis-ci.org/PeculiarVentures/webcrypto-core)
[![test](https://github.com/PeculiarVentures/webcrypto-core/actions/workflows/test.yml/badge.svg)](https://github.com/PeculiarVentures/webcrypto-core/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/PeculiarVentures/webcrypto-core/badge.svg?branch=master)](https://coveralls.io/github/PeculiarVentures/webcrypto-core?branch=master)

@@ -4,0 +4,0 @@ [![npm version](https://badge.fury.io/js/webcrypto-core.svg)](https://badge.fury.io/js/webcrypto-core)

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