Home
last modified time | relevance | path

Searched refs:KeymasterOperation (Results 1 – 3 of 3) sorted by relevance

/system/vold/
DKeymaster.h56 class KeymasterOperation {
58 ~KeymasterOperation();
76 KeymasterOperation(KeymasterOperation&& rhs) { *this = std::move(rhs); } in KeymasterOperation() function
78 KeymasterOperation() : mDevice{nullptr}, mOpHandle{0}, mError{km::ErrorCode::UNKNOWN_ERROR} {} in KeymasterOperation() function
80 KeymasterOperation& operator=(KeymasterOperation&& rhs) {
94 KeymasterOperation(KmDevice* d, uint64_t h) in KeymasterOperation() function
96 KeymasterOperation(km::ErrorCode error) : mDevice{nullptr}, mOpHandle{0}, mError{error} {} in KeymasterOperation() function
104 DISALLOW_COPY_AND_ASSIGN(KeymasterOperation);
125 KeymasterOperation begin(km::KeyPurpose purpose, const std::string& key,
DKeymaster.cpp30 KeymasterOperation::~KeymasterOperation() { in ~KeymasterOperation()
34 bool KeymasterOperation::updateCompletely(const char* input, size_t inputLen, in updateCompletely()
73 bool KeymasterOperation::finish(std::string* output) { in finish()
199 KeymasterOperation Keymaster::begin(km::KeyPurpose purpose, const std::string& key, in begin()
218 return KeymasterOperation(km::ErrorCode::UNKNOWN_ERROR); in begin()
222 return KeymasterOperation(km_error); in begin()
224 return KeymasterOperation(mDevice.get(), mOpHandle); in begin()
342 KeymasterOperation op; in keymaster_sign_object_for_cryptfs_scrypt()
DKeyStorage.cpp230 static KeymasterOperation begin(Keymaster& keymaster, const std::string& dir, in begin()
237 if (!readFileToString(kmKeyPath, &kmKey)) return KeymasterOperation(); in begin()
248 if (!keymaster.upgradeKey(kmKey, keyParams, &newKey)) return KeymasterOperation(); in begin()
250 if (!writeStringToFile(newKey, newKeyPath)) return KeymasterOperation(); in begin()
254 return KeymasterOperation(); in begin()
258 return KeymasterOperation(); in begin()