Home
last modified time | relevance | path

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

/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp39 TEST(NistCurveKeyExchange, SharedKey) { in TEST() argument
44 NistCurveKeyExchange* alice_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
45 NistCurveKeyExchange* bob_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
77 TEST(NistCurveKeyExchange, InvalidPublicKey) { in TEST() argument
81 KeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
95 TEST(NistCurveKeyExchange, TestInfinity) { in TEST() argument
113 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
184 TEST(NistCurveKeyExchange, NistTestVectors) { in TEST() argument
195 NistCurveKeyExchange* key_exchange = new NistCurveKeyExchange(ec_key.release(), &error); in TEST()
Decies_kem_test.cpp52 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
/system/keymaster/km_openssl/
Dnist_curve_key_exchange.cpp28 NistCurveKeyExchange::NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error) in NistCurveKeyExchange() function in keymaster::NistCurveKeyExchange
38 NistCurveKeyExchange* NistCurveKeyExchange::GenerateKeyExchange(keymaster_ec_curve_t curve) { in GenerateKeyExchange()
63 UniquePtr<NistCurveKeyExchange> key_exchange(new (std::nothrow) in GenerateKeyExchange()
64 NistCurveKeyExchange(key.get(), &error)); in GenerateKeyExchange()
72 keymaster_error_t NistCurveKeyExchange::ExtractPublicKey() { in ExtractPublicKey()
90 bool NistCurveKeyExchange::CalculateSharedKey(const Buffer& peer_public_value, in CalculateSharedKey()
97 bool NistCurveKeyExchange::CalculateSharedKey(const uint8_t* peer_public_value, in CalculateSharedKey()
123 bool NistCurveKeyExchange::public_value(Buffer* public_value) const { in public_value()
Decies_kem.cpp85 key_exchange_.reset(NistCurveKeyExchange::GenerateKeyExchange(curve_)); in Encrypt()
139 key_exchange_.reset(new (std::nothrow) NistCurveKeyExchange(private_key, &error)); in Decrypt()
/system/keymaster/include/keymaster/km_openssl/
Dnist_curve_key_exchange.h34 class NistCurveKeyExchange : public KeyExchange {
36 ~NistCurveKeyExchange() override {} in ~NistCurveKeyExchange()
41 NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error);
47 static NistCurveKeyExchange* GenerateKeyExchange(keymaster_ec_curve_t curve);