@Nullable static fun decryptInteractiveDetached(cipherText: Bytes, mac: Bytes, password: String): Bytes?
(source)@Nullable static fun decryptInteractiveDetached(cipherText: ByteArray, mac: ByteArray, password: String): ByteArray?
(source)
Decrypt a message using a password and a detached message authentication code, using PasswordHash for the key generation (with the currently recommended algorithm and limits on operations and memory that are suitable for interactive use-cases).
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
password
- The password that was used for encryption.
Return
The decrypted data, or null
if verification failed.
@Nullable static fun decryptInteractiveDetached(cipherText: Bytes, mac: Bytes, password: String, algorithm: Algorithm): Bytes?
(source)@Nullable static fun decryptInteractiveDetached(cipherText: ByteArray, mac: ByteArray, password: String, algorithm: Algorithm): ByteArray?
(source)
Decrypt a message using a password and a detached message authentication code, using PasswordHash for the key generation (with limits on operations and memory that are suitable for interactive use-cases).
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
password
- The password that was used for encryption.
algorithm
- The algorithm that was used for encryption.
Return
The decrypted data, or null
if verification failed.