Class: ECNamedCurves
Constructors
constructor
• new ECNamedCurves(): ECNamedCurves
Returns
Properties
namedCurves
▪ Static
Readonly
namedCurves: Record
<string
, ECNamedCurve
> = {}
Methods
find
▸ find(nameOrId
): null
| ECNamedCurve
Returns an ECC named curve object
Parameters
Name | Type | Description |
---|---|---|
nameOrId | string | Name or identifier of the named curve |
Returns
null
| ECNamedCurve
register
▸ register(name
, id
, size
): void
Registers an ECC named curve
Parameters
Name | Type | Description |
---|---|---|
name | string | The name o the curve |
id | string | The curve ASN.1 object identifier |
size | number | The coordinate length in bytes |
Returns
void