Home
last modified time | relevance | path

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

/system/keymaster/
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 NistCurveKeyExchange* key_exchange = new NistCurveKeyExchange(key.release(), &error); in GenerateKeyExchange()
70 keymaster_error_t NistCurveKeyExchange::ExtractPublicKey() { in ExtractPublicKey()
88 bool NistCurveKeyExchange::CalculateSharedKey(const Buffer& peer_public_value, in CalculateSharedKey()
95 bool NistCurveKeyExchange::CalculateSharedKey(const uint8_t* peer_public_value, in CalculateSharedKey()
120 bool NistCurveKeyExchange::public_value(Buffer* public_value) const { in public_value()
Dnist_curve_key_exchange_test.cpp41 TEST(NistCurveKeyExchange, SharedKey) { in TEST() argument
46 NistCurveKeyExchange* alice_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
47 NistCurveKeyExchange* bob_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
79 TEST(NistCurveKeyExchange, InvalidPublicKey) { in TEST() argument
83 KeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
97 TEST(NistCurveKeyExchange, TestInfinity) { in TEST() argument
115 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()
Dnist_curve_key_exchange.h35 class NistCurveKeyExchange : public KeyExchange {
37 ~NistCurveKeyExchange() override {} in ~NistCurveKeyExchange()
42 NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error);
48 static NistCurveKeyExchange* GenerateKeyExchange(keymaster_ec_curve_t curve);
Decies_kem_test.cpp53 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
Decies_kem.cpp85 key_exchange_.reset(NistCurveKeyExchange::GenerateKeyExchange(curve_)); in Encrypt()
139 key_exchange_.reset(new NistCurveKeyExchange(private_key, &error)); in Decrypt()