Searched refs:NistCurveKeyExchange (Results 1 – 5 of 5) sorted by relevance
/system/keymaster/tests/ |
D | nist_curve_key_exchange_test.cpp | 41 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()
|
D | ecies_kem_test.cpp | 54 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
|
/system/keymaster/km_openssl/ |
D | nist_curve_key_exchange.cpp | 28 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()
|
D | ecies_kem.cpp | 85 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/ |
D | nist_curve_key_exchange.h | 35 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);
|