android-components / mozilla.components.lib.dataprotect / Keystore / decryptBytes

# decryptBytes

`open fun decryptBytes(encrypted: ByteArray): ByteArray` (source)

Decrypts data using the managed key.

The input of this method is expected to include input factors (i.e., initialization vector), ciphertext, and authentication tag as a single byte string; it is the direct output from encryptBytes.

### Parameters

`encrypted` - The encrypted data to decrypt

### Exceptions

`KeystoreException` - If the data could not be decrypted

Return
The decrypted "plaintext" data