Home
last modified time | relevance | path

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

/system/keymaster/tests/
Decies_kem_test.cpp53 Buffer peer_public_value; in TEST() local
54 ASSERT_TRUE(key_exchange->public_value(&peer_public_value)); in TEST()
58 ASSERT_TRUE(kem->Encrypt(peer_public_value, &output_clear_key, &output_encrypted_key)); in TEST()
60 ASSERT_EQ(peer_public_value.available_read(), output_encrypted_key.available_read()); in TEST()
/system/keymaster/km_openssl/
Dnist_curve_key_exchange.cpp90 bool NistCurveKeyExchange::CalculateSharedKey(const Buffer& peer_public_value, in CalculateSharedKey() argument
93 return CalculateSharedKey(peer_public_value.peek_read(), peer_public_value.available_read(), in CalculateSharedKey()
97 bool NistCurveKeyExchange::CalculateSharedKey(const uint8_t* peer_public_value, in CalculateSharedKey() argument
104 group, point.get(), peer_public_value, peer_public_value_len, in CalculateSharedKey()
Decies_kem.cpp75 bool EciesKem::Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key, in Encrypt() argument
77 return Encrypt(peer_public_value.peek_read(), peer_public_value.available_read(), in Encrypt()
82 bool EciesKem::Encrypt(const uint8_t* peer_public_value, size_t peer_public_value_len, in Encrypt() argument
91 if (!key_exchange_->CalculateSharedKey(peer_public_value, peer_public_value_len, in Encrypt()
/system/keymaster/include/keymaster/km_openssl/
Dkey_exchange.h39 virtual bool CalculateSharedKey(const Buffer& peer_public_value, Buffer* shared_key) const = 0;
40 virtual bool CalculateSharedKey(const uint8_t* peer_public_value, size_t peer_public_value_len,
Dkem.h40 virtual bool Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key,
42 virtual bool Encrypt(const uint8_t* peer_public_value, size_t peer_public_value_len,
Dnist_curve_key_exchange.h52 bool CalculateSharedKey(const uint8_t* peer_public_value, size_t peer_public_value_len,
54 bool CalculateSharedKey(const Buffer& peer_public_value, Buffer* shared_key) const override;
Decies_kem.h42 bool Encrypt(const Buffer& peer_public_value, Buffer* output_clear_key,
44 bool Encrypt(const uint8_t* peer_public_value, size_t peer_public_value_len,