Searched refs:CalculateSharedKey (Results 1 – 5 of 5) sorted by relevance
/system/keymaster/tests/ |
D | nist_curve_key_exchange_test.cpp | 56 ASSERT_TRUE(alice_keyex->CalculateSharedKey(bob_public_value, &alice_shared)); in TEST() 57 ASSERT_TRUE(bob_keyex->CalculateSharedKey(alice_public_value, &bob_shared)); in TEST() 86 ASSERT_FALSE(key_exchange->CalculateSharedKey( in TEST() 117 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/ |
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 | 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;
|
/system/keymaster/km_openssl/ |
D | nist_curve_key_exchange.cpp | 90 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
|
D | ecies_kem.cpp | 91 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()
|