Skip to main content

ECNamedCurves

Constructors

new ECNamedCurves()

new ECNamedCurves(): ECNamedCurves

Returns

ECNamedCurves

Properties

namedCurves

readonly static namedCurves: Record<string, ECNamedCurve> = {}

Methods

find()

static find(nameOrId): null | ECNamedCurve

Returns an ECC named curve object

Parameters

nameOrId: string

Name or identifier of the named curve

Returns

null | ECNamedCurve


register()

static register(name, id, size): void

Registers an ECC named curve

Parameters

name: string

The name o the curve

id: string

The curve ASN.1 object identifier

size: number

The coordinate length in bytes

Returns

void