Decap

abstract fun Decap(enc: ByteArray, skR: SecretKey): ByteArray(source)

Deterministic algorithm using the private key skR to recover the ephemeral symmetric key (the KEM shared secret) from its encapsulated representation enc. This function can raise a DecapError on decapsulation failure.