Lines Matching refs:KeyBuffer
136 bool generateWrappedStorageKey(KeyBuffer* key) { in generateWrappedStorageKey()
143 *key = KeyBuffer(key_temp.size()); in generateWrappedStorageKey()
148 bool exportWrappedStorageKey(const KeyBuffer& ksKey, KeyBuffer* key) { in exportWrappedStorageKey()
154 *key = KeyBuffer(key_temp.size()); in exportWrappedStorageKey()
371 const km::AuthorizationSet& keyParams, const KeyBuffer& message, in encryptWithKeystoreKey()
398 const std::string& ciphertext, KeyBuffer* message) { in decryptWithKeystoreKey()
434 static bool encryptWithoutKeystore(const std::string& preKey, const KeyBuffer& plaintext, in encryptWithoutKeystore()
485 KeyBuffer* plaintext) { in decryptWithoutKeystore()
505 *plaintext = KeyBuffer(ciphertext.size() - GCM_NONCE_BYTES - GCM_MAC_BYTES); in decryptWithoutKeystore()
544 static bool storeKey(const std::string& dir, const KeyAuthentication& auth, const KeyBuffer& key) { in storeKey()
579 const KeyAuthentication& auth, const KeyBuffer& key) { in storeKeyAtomically()
597 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, KeyBuffer* key) { in retrieveKey()