Lines Matching refs:cipher_
87 std::unique_ptr<Aes128Gcm> cipher_; member
141 CHECK(!cipher_); in InitCipher()
161 cipher_.reset(new Aes128Gcm(key_material, key_material_len)); in InitCipher()
167 CHECK(cipher_); in Encrypt()
171 Data encrypted(cipher_->EncryptedSize(data.size())); in Encrypt()
172 auto out_size = cipher_->Encrypt(data.data(), data.size(), encrypted.data(), encrypted.size()); in Encrypt()
183 CHECK(cipher_); in Decrypt()
187 Data decrypted(cipher_->DecryptedSize(data.size())); in Decrypt()
189 auto out_size = cipher_->Decrypt(data.data(), data.size(), decrypted.data(), decrypted_size); in Decrypt()
200 CHECK(cipher_); in SafeEncryptedSize()
201 return cipher_->EncryptedSize(len); in SafeEncryptedSize()
205 CHECK(cipher_); in SafeDecryptedSize()
206 return cipher_->DecryptedSize(len); in SafeDecryptedSize()