1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef ANDROID_VOLD_KEYUTIL_H
- #define ANDROID_VOLD_KEYUTIL_H
- #include "KeyBuffer.h"
- #include "KeyStorage.h"
- #include <memory>
- #include <string>
- namespace android {
- namespace vold {
- bool randomKey(KeyBuffer* key);
- bool installKey(const KeyBuffer& key, std::string* raw_ref);
- bool evictKey(const std::string& raw_ref);
- bool retrieveAndInstallKey(bool create_if_absent, const KeyAuthentication& key_authentication,
- const std::string& key_path, const std::string& tmp_path,
- std::string* key_ref);
- bool retrieveKey(bool create_if_absent, const std::string& key_path, const std::string& tmp_path,
- KeyBuffer* key, bool keepOld = true);
- }
- }
- #endif
|