kemDecapsulate

expect suspend fun kemDecapsulate(key: MlKemPrivateKey, ciphertext: ByteArray): SecureByteString

Decapsulates a shared secret using an ML-KEM private key and ciphertext.

Return

the decapsulated shared secret as a SecureByteString.

Parameters

key

the recipient private key.

ciphertext

the ciphertext produced by encapsulation.

actual suspend fun kemDecapsulate(key: MlKemPrivateKey, ciphertext: ByteArray): SecureByteString
actual suspend fun kemDecapsulate(key: MlKemPrivateKey, ciphertext: ByteArray): SecureByteString
actual suspend fun kemDecapsulate(key: MlKemPrivateKey, ciphertext: ByteArray): SecureByteString