unwrapPayload

suspend fun unwrapPayload(privateKeyStore: PrivateKeyStore): PayloadUnwrapping<P>

Decrypt and deserialize payload.

Throws

if the CMS EnvelopedData value is invalid or the privateKey is invalid.

if the session key doesn't exist.

if the plaintext is invalid.

if the recipient address is public.


Decrypt and deserialize payload.

Throws

if the CMS EnvelopedData value is invalid or the privateKey is invalid.

if the plaintext is invalid.