keyAgreement

expect fun keyAgreement(key: EcPrivateKey, otherKey: EcPublicKey): ByteArray

Performs Key Agreement.

Return

the shared secret.

Parameters

key

the key to use for key agreement.

otherKey

the key from the other party.

actual fun keyAgreement(key: <Error class: unknown class>, otherKey: <Error class: unknown class>): ByteArray
actual fun keyAgreement(key: EcPrivateKey, otherKey: EcPublicKey): ByteArray

Performs Key Agreement.

Parameters

key

the key to use for key agreement.

otherKey

the key from the other party.