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

@peculiar/asn1-ecc

Package Overview
Dependencies
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peculiar/asn1-ecc - npm Package Compare versions

Comparing version 2.3.13 to 2.3.14

build/cjs/rfc3279.js

7

build/cjs/ec_parameters.js

@@ -6,2 +6,3 @@ "use strict";

const asn1_schema_1 = require("@peculiar/asn1-schema");
const rfc3279_1 = require("./rfc3279");
let ECParameters = class ECParameters {

@@ -16,4 +17,10 @@ constructor(params = {}) {

], ECParameters.prototype, "namedCurve", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Null })
], ECParameters.prototype, "implicitCurve", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: rfc3279_1.SpecifiedECDomain })
], ECParameters.prototype, "specifiedCurve", void 0);
exports.ECParameters = ECParameters = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice })
], ECParameters);

1

build/cjs/index.js

@@ -9,1 +9,2 @@ "use strict";

tslib_1.__exportStar(require("./object_identifiers"), exports);
tslib_1.__exportStar(require("./rfc3279"), exports);
import { __decorate } from "tslib";
import { AsnType, AsnTypeTypes, AsnProp, AsnPropTypes } from "@peculiar/asn1-schema";
import { SpecifiedECDomain } from "./rfc3279";
let ECParameters = class ECParameters {

@@ -11,2 +12,8 @@ constructor(params = {}) {

], ECParameters.prototype, "namedCurve", void 0);
__decorate([
AsnProp({ type: AsnPropTypes.Null })
], ECParameters.prototype, "implicitCurve", void 0);
__decorate([
AsnProp({ type: SpecifiedECDomain })
], ECParameters.prototype, "specifiedCurve", void 0);
ECParameters = __decorate([

@@ -13,0 +20,0 @@ AsnType({ type: AsnTypeTypes.Choice })

@@ -6,1 +6,2 @@ export * from "./algorithms";

export * from "./object_identifiers";
export * from "./rfc3279";

7

build/types/ec_parameters.d.ts

@@ -0,1 +1,2 @@

import { SpecifiedECDomain } from "./rfc3279";
/**

@@ -5,4 +6,4 @@ * ```

* namedCurve OBJECT IDENTIFIER
* -- implicitCurve NULL
* -- specifiedCurve SpecifiedECDomain
* implicitCurve NULL
* specifiedCurve SpecifiedECDomain
* }

@@ -17,3 +18,5 @@ * -- implicitCurve and specifiedCurve MUST NOT be used in PKIX.

namedCurve?: string;
implicitCurve?: null;
specifiedCurve?: SpecifiedECDomain;
constructor(params?: Partial<ECParameters>);
}

@@ -6,1 +6,2 @@ export * from "./algorithms";

export * from "./object_identifiers";
export * from "./rfc3279";
{
"name": "@peculiar/asn1-ecc",
"version": "2.3.13",
"version": "2.3.14",
"description": "ASN.1 schema of `Elliptic Curve Private Key Structure` (RFC5915)",

@@ -15,3 +15,7 @@ "files": [

"keywords": [
"asn"
"asn",
"ecc",
"rfc5915",
"rfc5480",
"rfc3279"
],

@@ -43,3 +47,3 @@ "author": "PeculiarVentures, LLC",

},
"gitHead": "c0a11836bb6ffcc71607099c8de936b6ab86d164"
"gitHead": "46ae90b52ee3b67eb3b112fa02aaa605d0def37e"
}

@@ -5,6 +5,11 @@ # `@peculiar/asn1-ecc`

[![npm version](https://badge.fury.io/js/%40peculiar%2Fasn1-ecc.svg)](https://badge.fury.io/js/%40peculiar%2Fasn1-ecc)
[![NPM](https://nodei.co/npm/@peculiar/asn1-ecc.png)](https://nodei.co/npm/@peculiar/asn1-ecc/)
[RFC 5915](https://tools.ietf.org/html/rfc5915) Elliptic Curve Private Key Structure
[RFC 5480](https://tools.ietf.org/html/rfc5480) Elliptic Curve Cryptography Subject Public Key Information
This module provides ASN.1 schema definitions and parsers for Elliptic Curve Cryptography (ECC) structures. It includes support for various ECC-related standards and specifications, making it easier to work with ECC keys and certificates in JavaScript and TypeScript applications.
| Document | Description |
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| [RFC 5915](https://tools.ietf.org/html/rfc5915) | Elliptic Curve Private Key Structure |
| [RFC 5480](https://tools.ietf.org/html/rfc5480) | Elliptic Curve Cryptography Subject Public Key Information |
| [RFC 3279](https://datatracker.ietf.org/doc/html/rfc3279#section-2.3.5) | Algorithms and Identifiers for the Internet X.509 Public Key Infrastructure Certificate: ECDSA and ECDH Keys |
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