Searched refs:peer_public_value (Results 1 – 7 of 7) sorted by relevance
/system/keymaster/tests/ |
D | ecies_kem_test.cpp | 53 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/ |
D | nist_curve_key_exchange.cpp | 90 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()
|
D | ecies_kem.cpp | 75 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/ |
D | key_exchange.h | 39 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,
|
D | kem.h | 40 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,
|
D | nist_curve_key_exchange.h | 52 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;
|
D | ecies_kem.h | 42 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,
|