Home
last modified time | relevance | path

Searched refs:Aes128Gcm (Results 1 – 4 of 4) sorted by relevance

/packages/modules/adb/pairing_auth/tests/
Daes_128_gcm_test.cpp28 std::unique_ptr<Aes128Gcm> cipher; in TEST()
29 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(nullptr, 42)); }, ""); in TEST()
34 std::unique_ptr<Aes128Gcm> cipher; in TEST()
35 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(material, 0)); }, ""); in TEST()
45 Aes128Gcm alice(material, sizeof(material)); in TEST()
46 Aes128Gcm bob(material, sizeof(material)); in TEST()
/packages/modules/adb/pairing_auth/
Daes_128_gcm.cpp37 Aes128Gcm::Aes128Gcm(const uint8_t* key_material, size_t key_material_len) { in Aes128Gcm() function in adb::pairing::Aes128Gcm
50 std::optional<size_t> Aes128Gcm::Encrypt(const uint8_t* in, size_t in_len, uint8_t* out, in Encrypt()
66 std::optional<size_t> Aes128Gcm::Decrypt(const uint8_t* in, size_t in_len, uint8_t* out, in Decrypt()
82 size_t Aes128Gcm::EncryptedSize(size_t size) { in EncryptedSize()
87 size_t Aes128Gcm::DecryptedSize(size_t size) { in DecryptedSize()
Dpairing_auth.cpp87 std::unique_ptr<Aes128Gcm> cipher_;
161 cipher_.reset(new Aes128Gcm(key_material, key_material_len)); in InitCipher()
/packages/modules/adb/pairing_auth/include/adb/pairing/
Daes_128_gcm.h29 class Aes128Gcm {
31 explicit Aes128Gcm(const uint8_t* key_material, size_t key_material_len);