Lines Matching refs:KeyBuffer
153 bool generateWrappedStorageKey(KeyBuffer* key) { in generateWrappedStorageKey()
160 *key = KeyBuffer(key_temp.size()); in generateWrappedStorageKey()
165 bool exportWrappedStorageKey(const KeyBuffer& kmKey, KeyBuffer* key) { in exportWrappedStorageKey()
171 *key = KeyBuffer(key_temp.size()); in exportWrappedStorageKey()
380 const KeyBuffer& message, std::string* ciphertext) { in encryptWithKeymasterKey()
406 const std::string& ciphertext, KeyBuffer* message) { in decryptWithKeymasterKey()
470 static bool encryptWithoutKeymaster(const std::string& preKey, const KeyBuffer& plaintext, in encryptWithoutKeymaster()
521 KeyBuffer* plaintext) { in decryptWithoutKeymaster()
541 *plaintext = KeyBuffer(ciphertext.size() - GCM_NONCE_BYTES - GCM_MAC_BYTES); in decryptWithoutKeymaster()
572 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey()
602 const KeyAuthentication& auth, const KeyBuffer& key) { in storeKeyAtomically()
622 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key) { in retrieveKey()