Home
last modified time | relevance | path

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

/system/keymaster/tests/
Decies_kem_test.cpp56 Buffer output_clear_key; in TEST() local
58 ASSERT_TRUE(kem->Encrypt(peer_public_value, &output_clear_key, &output_encrypted_key)); in TEST()
59 ASSERT_EQ(kKeyLen, output_clear_key.available_read()); in TEST()
66 EXPECT_EQ(0, memcmp(output_clear_key.peek_read(), decrypted_clear_key.peek_read(), in TEST()
67 output_clear_key.available_read())); in TEST()
/system/keymaster/km_openssl/
Decies_kem.cpp75 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()
/system/keymaster/include/keymaster/km_openssl/
Dkem.h40 virtual bool Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key,
43 Buffer* output_clear_key, Buffer* output_encrypted_key) = 0;
Decies_kem.h42 bool Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key,
45 Buffer* output_clear_key, Buffer* output_encrypted_key) override;