@Nullable static fun decryptSealed(cipherText: Bytes, sender: PublicKey, receiver: SecretKey): Bytes?
(source)@Nullable static fun decryptSealed(cipherText: ByteArray, sender: PublicKey, receiver: SecretKey): ByteArray?
(source)
Decrypt a sealed message using a given key.
cipherText
- The cipher text to decrypt.
sender
- The public key of the sender.
receiver
- The secret key of the receiver.
Return
The decrypted data, or null
if verification failed.