Searched refs:nonce (Results 1 – 5 of 5) sorted by relevance
| /system/utest/crypto/ |
| A D | aead.cpp | 143 uint64_t nonce; in DEFINE_EACH() local 159 EXPECT_OK(sealer.Seal(ptext, &nonce, &ctext)); in DEFINE_EACH() 161 EXPECT_OK(sealer.Seal(ptext, &nonce, &ctext)); in DEFINE_EACH() 174 uint64_t nonce = 0; in DEFINE_EACH() local 191 ASSERT_OK(sealer.Seal(ptext, &nonce, &ctext)); in DEFINE_EACH() 201 ASSERT_OK(sealer.Seal(ptext, &nonce, &ctext)); in DEFINE_EACH() 216 ASSERT_OK(sealer.Seal(ptext, &nonce, &ctext)); in DEFINE_EACH() 217 EXPECT_OK(opener.Open(nonce, ctext, &result)); in DEFINE_EACH() 219 ASSERT_OK(sealer.Seal(ptext, &nonce, &ctext)); in DEFINE_EACH() 238 uint64_t nonce; in DEFINE_EACH() local [all …]
|
| /system/ulib/crypto/include/crypto/ |
| A D | aead.h | 72 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 D | aead.cpp | 152 uint64_t nonce = iv_[0]; in Seal() local 159 *out_nonce = nonce; 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 183 iv_[0] = nonce; in Open()
|
| /system/ulib/trace-engine/ |
| A D | rules.mk | 22 $(LOCAL_DIR)/nonce.cpp 87 $(LOCAL_DIR)/nonce.cpp
|
| /system/ulib/zxcrypt/ |
| A D | volume.cpp | 619 zx_off_t nonce; in SealBlock() local 630 (rc = aead.Seal(ptext, header_, &nonce, &ctext)) != ZX_OK) { in SealBlock() 634 if (memcmp(&nonce, wrap_iv_.get(), sizeof(nonce)) != 0) { in SealBlock() 635 xprintf("unexpected nonce: %" PRIu64 "\n", nonce); in SealBlock() 683 zx_off_t nonce; in UnsealBlock() local 684 memcpy(&nonce, wrap_iv_.get(), sizeof(nonce)); in UnsealBlock() 685 if ((rc = aead.Open(nonce, ctext, header_, &ptext)) != ZX_OK || in UnsealBlock()
|
Completed in 17 milliseconds