Package-level declarations
Types
Functions
Link copied to clipboard
fun KeyAgreementPrivateValue.ECDH.Companion.Ephemeral(curve: ECCurve = ECCurve.SECP_256_R_1): KmmResult<KeyAgreementPrivateValue.ECDH>
Generates an ephemeral ECDH private value on the provided curve.
Link copied to clipboard
suspend fun CryptoPrivateKey.WithPublicKey<CryptoPublicKey.EC>.keyAgreement(publicValue: KeyAgreementPublicValue): KmmResult<ByteArray>
suspend fun KeyAgreementPrivateValue.keyAgreement(publicValue: KeyAgreementPublicValue): KmmResult<ByteArray>
suspend fun KeyAgreementPublicValue.ECDH.keyAgreement(privateValue: CryptoPrivateKey.WithPublicKey<CryptoPublicKey.EC>): KmmResult<ByteArray>
Performs key agreement
suspend fun KeyAgreementPublicValue.keyAgreement(privateValue: KeyAgreementPrivateValue): KmmResult<ByteArray>