decryptLockBox

Decrypt a message using a private key for the recipient (sk) and verify the signature with the public key of the sender (pk). Returns null if decryption or verification failed.

ubyte[]
decryptLockBox
(
in ubyte[] cipher
,
in Nonce nonce
,
in PublicKey pk
,
in PrivateKey sk
)
in { assert (cipher.length > LockBoxMacLength); }

Meta