Searched refs:Seal (Results 1 - 4 of 4) sorted by relevance
/fuchsia/zircon/system/ulib/crypto/include/crypto/ |
H A D | aead.h | 61 zx_status_t Seal(const Bytes& ptext, uint64_t* out_nonce, Bytes* out_ctext) { function in class:crypto::final 62 return Seal(ptext, nullptr, 0, out_nonce, out_ctext); 64 zx_status_t Seal(const Bytes& ptext, const Bytes& aad, uint64_t* out_nonce, Bytes* out_ctext) { function in class:crypto::final 65 return Seal(ptext, aad.get(), aad.len(), out_nonce, out_ctext); 69 // Decryption can only succeed if the |iv| matches those produced by |Seal| and the AEAD tag is 89 zx_status_t Seal(const Bytes& ptext, const uint8_t* aad, size_t aad_len, uint64_t* out_nonce, 103 // Original value of |iv_[0]|. |Seal| will fail if |iv_[0]| wraps around to this value.
|
/fuchsia/zircon/system/utest/crypto/ |
H A D | aead.cpp | 148 EXPECT_ZX(sealer.Seal(ptext, &nonce, &ctext), ZX_ERR_BAD_STATE); 152 EXPECT_ZX(sealer.Seal(ptext, nullptr, &ctext), ZX_ERR_INVALID_ARGS); 153 EXPECT_ZX(sealer.Seal(ptext, &nonce, nullptr), ZX_ERR_INVALID_ARGS); 159 EXPECT_OK(sealer.Seal(ptext, &nonce, &ctext)); 161 EXPECT_OK(sealer.Seal(ptext, &nonce, &ctext)); 165 EXPECT_ZX(sealer.Seal(ptext, &nonce, &ctext), ZX_ERR_BAD_STATE); 180 // ASSERT_OK(sealer.Seal(ptext, &nonce, &ctext)); 191 ASSERT_OK(sealer.Seal(ptext, &nonce, &ctext)); 201 ASSERT_OK(sealer.Seal(ptext, &nonce, &ctext)); 213 EXPECT_ZX(opener.Seal(ptex [all...] |
/fuchsia/zircon/system/ulib/crypto/ |
H A D | aead.cpp | 114 zx_status_t AEAD::Seal(const Bytes& ptext, const uint8_t* aad, size_t aad_len, uint64_t* out_nonce, function in class:crypto::AEAD
|
/fuchsia/zircon/system/ulib/zxcrypt/ |
H A D | volume.cpp | 607 (rc = aead.Seal(ptext, header_, &nonce, &ctext)) != ZX_OK) {
|
Completed in 81 milliseconds