keyAgreement

expect suspend 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 suspend fun keyAgreement(key: <Error class: unknown class>, otherKey: <Error class: unknown class>): ByteArray
actual suspend 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.

actual suspend fun keyAgreement(key: EcPrivateKey, otherKey: EcPublicKey): ByteArray