Searched refs:key_exchange (Results 1 – 3 of 3) sorted by relevance
81 KeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST() local82 ASSERT_TRUE(key_exchange != nullptr); in TEST()86 ASSERT_FALSE(key_exchange->CalculateSharedKey( in TEST()113 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST() local114 ASSERT_TRUE(key_exchange != nullptr); in TEST()117 ASSERT_FALSE(key_exchange->CalculateSharedKey(reinterpret_cast<const uint8_t*>(public_key), in TEST()124 key_exchange->private_key(), nullptr /* kdf */)); in TEST()195 NistCurveKeyExchange* key_exchange = new NistCurveKeyExchange(ec_key.release(), &error); in TEST() local197 ASSERT_TRUE(key_exchange != nullptr); in TEST()201 ASSERT_TRUE(key_exchange->CalculateSharedKey( in TEST()[all …]
52 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST() local54 ASSERT_TRUE(key_exchange->public_value(&peer_public_value)); in TEST()64 kem->Decrypt(key_exchange->private_key(), output_encrypted_key, &decrypted_clear_key)); in TEST()
63 UniquePtr<NistCurveKeyExchange> key_exchange(new (std::nothrow) in GenerateKeyExchange() local65 if (!key_exchange.get()) error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKeyExchange()69 return key_exchange.release(); in GenerateKeyExchange()