Searched refs:cipher_ (Results 1 – 1 of 1) sorted by relevance
87 std::unique_ptr<Aes128Gcm> cipher_; member141 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()[all …]