Home
last modified time | relevance | path

Searched refs:mMasterKey (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore/
Duser_state.cpp75 memset(mMasterKey.data(), 0, mMasterKey.size()); in zeroizeMasterKeysInMemory()
104 mMasterKey = (*src)->mMasterKey; in copyMasterKey()
140 std::vector<uint8_t> passwordKey(mMasterKey.size()); in writeMasterKey()
143 if (mMasterKey.size() == kAes128KeySizeBytes) { in writeMasterKey()
146 Blob masterKeyBlob(mMasterKey.data(), mMasterKey.size(), mSalt, sizeof(mSalt), blobType); in writeMasterKey()
201 mMasterKey = std::vector<uint8_t>(masterKeyBlob.getValue(), in readMasterKey()
265 mMasterKey.resize(MASTER_KEY_SIZE_BYTES); in generateMasterKey()
266 if (!RAND_bytes(mMasterKey.data(), mMasterKey.size())) { in generateMasterKey()
Duser_state.h68 const std::vector<uint8_t>& getEncryptionKey() const { return mMasterKey; } in getEncryptionKey()
95 std::vector<uint8_t> mMasterKey; variable