Companion

Properties

Link copied to clipboard
open override val oid: ObjectIdentifier

Functions

Link copied to clipboard
fun ECPoint.asPublicKey(preferCompressed: Boolean = false): CryptoPublicKey.EC
Link copied to clipboard

Decodes a key from its ANSI X9.63 representation

Link copied to clipboard
inline fun fromCompressed(curve: ECCurve, x: ByteArray, sign: Sign): CryptoPublicKey.EC
inline fun fromCompressed(curve: ECCurve, x: ByteArray, usePositiveY: Boolean): CryptoPublicKey.EC

Decodes key from big-endian X and sign of Y

Link copied to clipboard
Link copied to clipboard

Decodes key from big-endian X and big-endian Y

Link copied to clipboard
inline operator fun invoke(curve: ECCurve, x: ByteArray, usePositiveY: Boolean): CryptoPublicKey.EC
inline operator fun invoke(curve: ECCurve, x: ByteArray, y: ByteArray): CryptoPublicKey.EC