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

pkijs

Package Overview
Dependencies
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkijs - npm Package Compare versions

Comparing version 2.0.64 to 2.0.66

2

package.json

@@ -72,4 +72,4 @@ {

"name": "pkijs",
"version": "2.0.64",
"version": "2.0.66",
"license": "MIT"
}

@@ -52,3 +52,3 @@ import * as asn1js from "asn1js";

*/
static schema(parameters = {})
static schema(parameters = {}, optional = false)
{

@@ -61,7 +61,9 @@ /**

const names = getParametersValue(parameters, "names", {});
return (new asn1js.Sequence({
optional,
name: (names.blockName || ""),
value: [
new asn1js.Repeated({
name: (names.blockName || "names"),
name: (names.generalNames || ""),
value: GeneralName.schema()

@@ -82,3 +84,8 @@ })

schema,
GeneralNames.schema()
GeneralNames.schema({
names: {
blockName: "names",
generalNames: "generalNames"
}
})
);

@@ -91,3 +98,3 @@

//region Get internal properties from parsed schema
this.names = Array.from(asn1.result.names, element => new GeneralName({ schema: element }));
this.names = Array.from(asn1.result.generalNames, element => new GeneralName({ schema: element }));
//endregion

@@ -94,0 +101,0 @@ }

@@ -29,12 +29,16 @@ import * as asn1js from "asn1js";

this.iterationCount = getParametersValue(parameters, "iterationCount", PBKDF2Params.defaultValues("iterationCount"));
/**
* @type {number}
* @description keyLength
*/
this.keyLength = getParametersValue(parameters, "keyLength", PBKDF2Params.defaultValues("keyLength"));
/**
* @type {AlgorithmIdentifier}
* @description prf
*/
this.prf = getParametersValue(parameters, "prf", PBKDF2Params.defaultValues("prf"));
if("keyLength" in parameters)
/**
* @type {number}
* @description keyLength
*/
this.keyLength = getParametersValue(parameters, "keyLength", PBKDF2Params.defaultValues("keyLength"));
if("prf" in parameters)
/**
* @type {AlgorithmIdentifier}
* @description prf
*/
this.prf = getParametersValue(parameters, "prf", PBKDF2Params.defaultValues("prf"));
//endregion

@@ -63,3 +67,6 @@

case "prf":
return new AlgorithmIdentifier();
return new AlgorithmIdentifier({
algorithmId: "1.3.14.3.2.26", // SHA-1
algorithmParams: new asn1js.Null()
});
default:

@@ -66,0 +73,0 @@ throw new Error(`Invalid member name for PBKDF2Params class: ${memberName}`);

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