Use to encrypt/decrypt data and store to disk. */ class BtifKeystore { public: /** * @param keystore_client injected pre-created client object for keystore */ BtifKeystore(keystore::KeystoreClient* keystore_client); /** * Encrypts given data * *
Returns a string representation of the encrypted data
*
* @param data to be encrypted
* @param flags for keystore
*/
std::string Encrypt(const std::string& data, int32_t flags);
/**
* Returns a decrypted string representation of the encrypted data or empty
* string on error.
*
* @param input encrypted data
*/
std::string Decrypt(const std::string& input_filename);
/**
* Check for existence of keystore key.
*
* This key can be cleared if a user manually wipes bluetooth storage data
* b/133214365
*/
bool DoesKeyExist();
private:
std::unique_ptr