Home
last modified time | relevance | path

Searched refs:CalculateSharedKey (Results 1 – 5 of 5) sorted by relevance

/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp58 ASSERT_TRUE(alice_keyex->CalculateSharedKey(bob_public_value, &alice_shared)); in TEST()
59 ASSERT_TRUE(bob_keyex->CalculateSharedKey(alice_public_value, &bob_shared)); in TEST()
88 ASSERT_FALSE(key_exchange->CalculateSharedKey( in TEST()
119 ASSERT_FALSE(key_exchange->CalculateSharedKey(reinterpret_cast<const uint8_t*>(public_key), in TEST()
201 ASSERT_TRUE(key_exchange->CalculateSharedKey( in TEST()
211 ASSERT_FALSE(key_exchange->CalculateSharedKey( in TEST()
/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,
Dnist_curve_key_exchange.h53 bool CalculateSharedKey(const uint8_t* peer_public_value, size_t peer_public_value_len,
55 bool CalculateSharedKey(const Buffer& peer_public_value, Buffer* shared_key) const override;
/system/keymaster/km_openssl/
Dnist_curve_key_exchange.cpp90 bool NistCurveKeyExchange::CalculateSharedKey(const Buffer& peer_public_value, in CalculateSharedKey() function in keymaster::NistCurveKeyExchange
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() function in keymaster::NistCurveKeyExchange
Decies_kem.cpp91 if (!key_exchange_->CalculateSharedKey(peer_public_value, peer_public_value_len, in Encrypt()
145 if (!key_exchange_->CalculateSharedKey(encrypted_key, encrypted_key_len, &shared_secret)) { in Decrypt()