Home
last modified time | relevance | path

Searched refs:ctext (Results 1 – 5 of 5) sorted by relevance

/system/utest/crypto/
A Dcipher.cpp134 uint8_t ctext[len]; in DEFINE_EACH() local
169 uint8_t ctext[len]; in DEFINE_EACH() local
207 uint8_t ctext[len]; in DEFINE_EACH() local
219 EXPECT_OK(decrypt.Decrypt(ctext, 0, result)); in DEFINE_EACH()
252 ctext[0] ^= 1; in DEFINE_EACH()
272 uint8_t ctext[len]; in DEFINE_EACH() local
318 ctext[0] ^= 1; in DEFINE_EACH()
337 Bytes iv, ctext, ptext; in DEFINE_EACH() local
341 ASSERT_OK(HexToBytes(xctext, &ctext)); in DEFINE_EACH()
342 size_t len = ctext.len(); in DEFINE_EACH()
[all …]
A Daead.cpp142 Bytes iv, ptext, ctext; in DEFINE_EACH() local
173 Bytes iv, ptext, ctext, result; in DEFINE_EACH() local
200 ASSERT_OK(ctext.Resize(0)); in DEFINE_EACH()
202 len = ctext.len(); in DEFINE_EACH()
203 ctext[len - 1] ^= 1; in DEFINE_EACH()
205 ctext[len - 1] ^= 1; in DEFINE_EACH()
208 ctext[0] ^= 1; in DEFINE_EACH()
210 ctext[0] ^= 1; in DEFINE_EACH()
245 ASSERT_OK(ctext.Copy(tag.get(), tag.len(), ctext.len())); in DEFINE_EACH()
250 EXPECT_TRUE(result == ctext); in DEFINE_EACH()
[all …]
/system/ulib/crypto/include/crypto/
A Daead.h72 zx_status_t Open(uint64_t nonce, const Bytes& ctext, Bytes* out_ptext) { in Open() argument
73 return Open(nonce, ctext, nullptr, 0, out_ptext); in Open()
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()
91 zx_status_t Open(uint64_t nonce, const Bytes& ctext, const uint8_t* aad, size_t aad_len,
/system/ulib/crypto/
A Daead.cpp163 zx_status_t AEAD::Open(uint64_t nonce, const Bytes& ctext, const uint8_t* aad, size_t aad_len, Byte… in Open() argument
171 size_t ctext_len = ctext.len(); in Open()
187 ctext.get(), ctext_len, aad, aad_len) != 1) { in Open()
/system/ulib/zxcrypt/
A Dvolume.cpp621 crypto::Bytes ptext, ctext; in SealBlock() local
630 (rc = aead.Seal(ptext, header_, &nonce, &ctext)) != ZX_OK) { in SealBlock()
639 memcpy(block_.get() + off, ctext.get(), ctext.len()); in SealBlock()
670 crypto::Bytes ctext, ptext; in UnsealBlock() local
676 (rc = ctext.Copy(block_.get() + off, slot_len_)) != ZX_OK || in UnsealBlock()
685 if ((rc = aead.Open(nonce, ctext, header_, &ptext)) != ZX_OK || in UnsealBlock()

Completed in 10 milliseconds