Lines Matching refs:KeyBuffer
139 bool generateWrappedStorageKey(KeyBuffer* key) { in generateWrappedStorageKey()
147 *key = KeyBuffer(key_temp.size()); in generateWrappedStorageKey()
152 bool exportWrappedStorageKey(const KeyBuffer& kmKey, KeyBuffer* key) { in exportWrappedStorageKey()
158 *key = KeyBuffer(key_temp.size()); in exportWrappedStorageKey()
271 … const km::HardwareAuthToken& authToken, const KeyBuffer& message, in encryptWithKeymasterKey()
300 const std::string& ciphertext, KeyBuffer* message, in decryptWithKeymasterKey()
377 static bool encryptWithoutKeymaster(const std::string& preKey, const KeyBuffer& plaintext, in encryptWithoutKeymaster()
428 KeyBuffer* plaintext) { in decryptWithoutKeymaster()
448 *plaintext = KeyBuffer(ciphertext.size() - GCM_NONCE_BYTES - GCM_MAC_BYTES); in decryptWithoutKeymaster()
483 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey()
525 const KeyAuthentication& auth, const KeyBuffer& key) { in storeKeyAtomically()
543 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key, in retrieveKey()