Home
last modified time | relevance | path

Searched refs:AEAD (Results 1 – 7 of 7) sorted by relevance

/system/utest/crypto/
A Daead.cpp39 EXPECT_OK(AEAD::GetKeyLen(AEAD::kAES128_GCM, &key_len)); in TestGetLengths_AES128_GCM()
44 EXPECT_OK(AEAD::GetIVLen(AEAD::kAES128_GCM, &iv_len)); in TestGetLengths_AES128_GCM()
49 EXPECT_OK(AEAD::GetTagLen(AEAD::kAES128_GCM, &tag_len)); in TestGetLengths_AES128_GCM()
57 EXPECT_OK(AEAD::GetKeyLen(AEAD::kAES128_GCM_SIV, &key_len)); in TestGetLengths_AES128_GCM_SIV()
62 EXPECT_OK(AEAD::GetIVLen(AEAD::kAES128_GCM_SIV, &iv_len)); in TestGetLengths_AES128_GCM_SIV()
67 EXPECT_OK(AEAD::GetTagLen(AEAD::kAES128_GCM_SIV, &tag_len)); in TestGetLengths_AES128_GCM_SIV()
74 AEAD sealer; in TestInitSeal_Uninitialized()
83 AEAD sealer; in TestInitSeal()
107 AEAD opener; in DEFINE_EACH()
116 AEAD opener; in TestInitOpen()
[all …]
A Dutils.cpp96 zx_status_t GenerateKeyMaterial(AEAD::Algorithm cipher, Secret* key, Bytes* iv) { in GenerateKeyMaterial()
101 if ((rc = AEAD::GetKeyLen(cipher, &key_len)) != ZX_OK || in GenerateKeyMaterial()
107 if ((rc = AEAD::GetIVLen(cipher, &iv_len)) != ZX_OK || in GenerateKeyMaterial()
A Dutils.h74 zx_status_t GenerateKeyMaterial(AEAD::Algorithm aead, Secret* key, Bytes* iv);
/system/ulib/crypto/
A Daead.cpp29 struct AEAD::Context {
40 zx_status_t GetAEAD(AEAD::Algorithm aead, const EVP_AEAD** out) { in GetAEAD()
42 case AEAD::kUninitialized: in GetAEAD()
46 case AEAD::kAES128_GCM: in GetAEAD()
50 case AEAD::kAES128_GCM_SIV: in GetAEAD()
64 zx_status_t AEAD::GetKeyLen(Algorithm algo, size_t* out) { in GetKeyLen()
80 zx_status_t AEAD::GetIVLen(Algorithm algo, size_t* out) { in GetIVLen()
96 zx_status_t AEAD::GetTagLen(Algorithm algo, size_t* out) { in GetTagLen()
112 AEAD::AEAD() in AEAD() function in crypto::AEAD
115 AEAD::~AEAD() {} in ~AEAD()
[all …]
/system/ulib/crypto/include/crypto/
A Daead.h23 class AEAD final {
32 AEAD();
33 ~AEAD();
83 DISALLOW_COPY_ASSIGN_AND_MOVE(AEAD);
/system/ulib/zxcrypt/
A Dvolume.cpp173 aead_ = crypto::AEAD::kUninitialized; in Reset()
478 aead_ = crypto::AEAD::kAES128_GCM_SIV; in Configure()
491 (rc = crypto::AEAD::GetTagLen(aead_, &tag_len)) != ZX_OK) { in Configure()
516 if ((rc = crypto::AEAD::GetKeyLen(aead_, &len)) != ZX_OK || in DeriveSlotKeys()
523 if ((rc = crypto::AEAD::GetIVLen(aead_, &len)) != ZX_OK || in DeriveSlotKeys()
620 crypto::AEAD aead; in SealBlock()
669 crypto::AEAD aead; in UnsealBlock()
/system/ulib/zxcrypt/include/zxcrypt/
A Dvolume.h194 crypto::AEAD::Algorithm aead_;

Completed in 10 milliseconds