Lines Matching refs:ciphertext
189 uint8_t ciphertext[HRSS_CIPHERTEXT_BYTES]; in TEST() local
191 HRSS_encap(ciphertext, shared_key, &pub2, encap_entropy); in TEST()
194 HRSS_decap(shared_key2, &priv, ciphertext, sizeof(ciphertext)); in TEST()
214 uint8_t ciphertext[HRSS_CIPHERTEXT_BYTES]; in TEST() local
216 HRSS_encap(ciphertext, shared_key, &pub, encap_entropy); in TEST()
219 HRSS_decap(shared_key2, &priv, ciphertext, sizeof(ciphertext)); in TEST()
226 ciphertext[offset % sizeof(ciphertext)] ^= (1 << (bit & 7)); in TEST()
227 HRSS_decap(shared_key2, &priv, ciphertext, sizeof(ciphertext)); in TEST()
357 uint8_t ciphertext[HRSS_CIPHERTEXT_BYTES]; in TEST() local
359 HRSS_encap(ciphertext, shared_key, &pub, encap_entropy); in TEST()
458 EXPECT_EQ(Bytes(ciphertext), Bytes(kExpectedCiphertext)); in TEST()
467 HRSS_decap(shared_key, &priv, ciphertext, sizeof(ciphertext)); in TEST()
472 ciphertext[50] ^= 4; in TEST()
473 HRSS_decap(shared_key, &priv, ciphertext, sizeof(ciphertext)); in TEST()