Functions
Link copied to clipboard
fun convertKey(key: BinaryLike, curve: String, inputEncoding: BinaryToTextEncoding = definedExternally, outputEncoding: ECDHConvertKeyOutputEncoding = definedExternally, format: ECDHConvertKeyFormat = definedExternally): Any
Converts the EC Diffie-Hellman public key specified by key
and curve
to the format specified by format
. The format
argument specifies point encoding and can be 'compressed'
, 'uncompressed'
or 'hybrid'
. The supplied key is interpreted using the specified inputEncoding
, and the returned key is encoded using the specified outputEncoding
.