Searched refs:output_clear_key (Results 1 – 4 of 4) sorted by relevance
/system/keymaster/ |
D | ecies_kem_test.cpp | 57 Buffer output_clear_key; in TEST() local 59 ASSERT_TRUE(kem->Encrypt(peer_public_value, &output_clear_key, &output_encrypted_key)); in TEST() 60 ASSERT_EQ(kKeyLen, output_clear_key.available_read()); in TEST() 67 EXPECT_EQ(0, memcmp(output_clear_key.peek_read(), decrypted_clear_key.peek_read(), in TEST() 68 output_clear_key.available_read())); in TEST()
|
D | ecies_kem.cpp | 75 bool EciesKem::Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key, in Encrypt() argument 78 output_clear_key, output_encrypted_key); in Encrypt() 83 Buffer* output_clear_key, Buffer* output_encrypted_key) { in Encrypt() argument 118 output_clear_key->Reinitialize(key_bytes_to_generate_); in Encrypt() 119 if (!kdf_->GenerateKey(nullptr /* info */, 0 /* info length */, output_clear_key->peek_write(), in Encrypt() 124 output_clear_key->advance_write(key_bytes_to_generate_); in Encrypt()
|
D | kem.h | 40 virtual bool Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key, 43 Buffer* output_clear_key, Buffer* output_encrypted_key) = 0;
|
D | ecies_kem.h | 42 bool Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key, 45 Buffer* output_clear_key, Buffer* output_encrypted_key) override;
|