Lines Matching refs:nonce_
60 nonce_.reserve(OCB_NONCE_LENGTH); in KeyBlobTest()
61 EXPECT_EQ(1, RAND_bytes(nonce_.peek_write(), OCB_NONCE_LENGTH)); in KeyBlobTest()
62 nonce_.advance_write(OCB_NONCE_LENGTH); in KeyBlobTest()
69 nonce_, &ciphertext_, &tag_); in Encrypt()
73 return OcbDecryptKey(hw_enforced_, sw_enforced_, hidden_, master_key_, ciphertext_, nonce_, in Decrypt()
78 return SerializeAuthEncryptedBlob(ciphertext_, hw_enforced_, sw_enforced_, nonce_, tag_, in Serialize()
84 &sw_enforced_, &nonce_, &tag_); in Deserialize()
90 Buffer nonce_, tag_; member in keymaster::test::KeyBlobTest
110 nonce_.Clear(); in TEST_F()
116 &nonce_, &tag_)); in TEST_F()
118 OcbDecryptKey(hw2, sw2, hidden_, master_key_, ciphertext_, nonce_, tag_, &plaintext); in TEST_F()
143 std::search(serialized_blob_.begin(), serialized_blob_.end(), nonce_.begin(), nonce_.end()); in TEST_F()
146 std::search(nonce_ptr + 1, serialized_blob_.end(), nonce_.begin(), nonce_.end())); in TEST_F()
198 OcbDecryptKey(hw_enforced_, sw_enforced_, hidden_, wrong_master, ciphertext_, nonce_, in TEST_F()
258 nonce_, tag_, &decrypted_plaintext_)); in TEST_F()
273 nonce_, tag_, &decrypted_plaintext_)); in TEST_F()
288 nonce_, tag_, &decrypted_plaintext_)); in TEST_F()
316 key_blob, &ciphertext_, &hw_enforced_, &sw_enforced_, &nonce_, &tag_); in TEST_F()
321 nonce_, tag_, &decrypted_plaintext_); in TEST_F()
341 &nonce_, &tag_)); in TEST_F()
358 &nonce_, &tag_)); in TEST_F()