keyAgreement

expect suspend fun keyAgreement(key: EcPrivateKey, otherKey: EcPublicKey): SecureByteString

Performs Key Agreement.

Return

the shared secret as a SecureByteString.

Parameters

key

the key to use for key agreement.

otherKey

the key from the other party.

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

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): SecureByteString