Class: ECDSA_KEY

ECDSA_KEY


new ECDSA_KEY()

This module implements the module:api.Key interface, for ECDSA.

Extends

Methods


getPublicKey()

Returns the corresponding public key if this key is an asymmetric private key. If this key is already public, returns this key itself.
Inherited From:
Returns:
the corresponding public key if this key is an asymmetric private key. If this key is already public, returns this key itself.
Type
module:api.Key

getSKI()

Returns the subject key identifier of this key
Inherited From:
Returns:
The subject key identifier of this key as a hexidecial encoded string
Type
string

isPrivate()

Returns true if this key is an asymmetric private key, false otherwise.
Inherited From:
Returns:
if this key is an asymmetric private key
Type
boolean

isSymmetric()

Returns true if this key is a symmetric key, false is this key is asymmetric
Inherited From:
Returns:
if this key is a symmetric key
Type
boolean

toBytes()

Converts this key to its PEM representation, if this operation is allowed.
Inherited From:
Returns:
the PEM string representation of the key
Type
string