kemDecapsulate1

abstract suspend fun kemDecapsulate1(signature: EcSignature, passphrase: String?): ByteString

Completes decapsulating a shared secret with a KEM cloud key.

Return

the decapsulated shared secret.

Parameters

signature

the signature over the server nonce made with the companion local key.

passphrase

the passphrase if required for the key, or null.

Throws

if the passphrase is missing or incorrect.

if too many failed passphrase attempts occurred.