@Nullable fun decryptDetached(cipherText: Bytes, mac: Bytes, nonce: Nonce): Bytes?
(source)@Nullable fun decryptDetached(cipherText: ByteArray, mac: ByteArray, nonce: Nonce): ByteArray?
(source)
Decrypt a message using a detached message authentication code.
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
nonce
- The nonce that was used for encryption.
Return
The decrypted data, or null
if verification failed.
@Nullable fun decryptDetached(cipherText: Bytes, mac: Bytes, data: Bytes, nonce: Nonce): Bytes?
(source)
Decrypt a message using a detached message authentication code.
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
data
- Extra non-confidential data that is included within the encrypted payload.
nonce
- The nonce that was used for encryption.
Return
The decrypted data, or null
if verification failed.
@Nullable fun decryptDetached(cipherText: ByteArray, mac: ByteArray, data: ByteArray, nonce: Nonce): ByteArray?
(source)
Decrypt a message using a detached message authentication code.
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
data
- Extra non-confidential data that is included within the encrypted payload.
nonce
- The nonce that was used for encryption.
UnsupportedOperationException
- If AES256-GSM support is not available.
Return
The decrypted data, or null
if verification failed.
@Nullable static fun decryptDetached(cipherText: Bytes, mac: Bytes, key: Key, nonce: Nonce): Bytes?
(source)@Nullable static fun decryptDetached(cipherText: ByteArray, mac: ByteArray, key: Key, nonce: Nonce): ByteArray?
(source)
Decrypt a message using a given key and a detached message authentication code.
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
key
- The key to use for decryption.
nonce
- The nonce that was used for encryption.
Return
The decrypted data, or null
if verification failed.
@Nullable static fun decryptDetached(cipherText: Bytes, mac: Bytes, data: Bytes, key: Key, nonce: Nonce): Bytes?
(source)
Decrypt a message using a given key and a detached message authentication code.
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
data
- Extra non-confidential data that is included within the encrypted payload.
key
- The key to use for decryption.
nonce
- The nonce that was used for encryption.
Return
The decrypted data, or null
if verification failed.
@Nullable static fun decryptDetached(cipherText: ByteArray, mac: ByteArray, data: ByteArray, key: Key, nonce: Nonce): ByteArray?
(source)
Decrypt a message using a given key and a detached message authentication code.
cipherText
- The cipher text to decrypt.
mac
- The message authentication code.
data
- Extra non-confidential data that is included within the encrypted payload.
key
- The key to use for decryption.
nonce
- The nonce that was used for encryption.
UnsupportedOperationException
- If AES256-GSM support is not available.
Return
The decrypted data, or null
if verification failed.