Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 3 of 3) sorted by relevance

/system/ulib/crypto/include/crypto/
A Daead.h64 zx_status_t Seal(const Bytes& ptext, const Bytes& aad, uint64_t* out_nonce, Bytes* out_ctext) { in Seal() argument
65 return Seal(ptext, aad.get(), aad.len(), out_nonce, out_ctext); in Seal()
75 zx_status_t Open(uint64_t nonce, const Bytes& ctext, const Bytes& aad, Bytes* out_ptext) { in Open() argument
76 return Open(nonce, ctext, aad.get(), aad.len(), out_ptext); in Open()
89 zx_status_t Seal(const Bytes& ptext, const uint8_t* aad, size_t aad_len, uint64_t* out_nonce,
91 zx_status_t Open(uint64_t nonce, const Bytes& ctext, const uint8_t* aad, size_t aad_len,
/system/ulib/crypto/
A Daead.cpp117 zx_status_t AEAD::Seal(const Bytes& ptext, const uint8_t* aad, size_t aad_len, uint64_t* out_nonce, in Seal() argument
142 ptext.get(), ptext_len, aad, aad_len) != 1) { in Seal()
163 zx_status_t AEAD::Open(uint64_t nonce, const Bytes& ctext, const uint8_t* aad, size_t aad_len, Byte… in Open() argument
187 ctext.get(), ctext_len, aad, aad_len) != 1) { in Open()
/system/utest/crypto/
A Daead.cpp237 Bytes ptext, aad, iv, ctext, tag, result; in DEFINE_EACH() local
242 ASSERT_OK(HexToBytes(xaad, &aad)); in DEFINE_EACH()
249 EXPECT_OK(sealer.Seal(ptext, aad, &nonce, &result)); in DEFINE_EACH()
255 EXPECT_OK(opener.Open(nonce, ctext, aad, &result)); in DEFINE_EACH()
478 Bytes ptext, aad, iv, ctext, tag, result; in TestAes128GcmSiv_TC() local
481 ASSERT_OK(HexToBytes(xaad, &aad)); in TestAes128GcmSiv_TC()
488 EXPECT_OK(sealer.Seal(ptext, aad, &nonce, &ctext)); in TestAes128GcmSiv_TC()
494 EXPECT_OK(opener.Open(nonce, ctext, aad, &result)); in TestAes128GcmSiv_TC()

Completed in 8 milliseconds