Searched refs:key_exchange (Results 1 – 3 of 3) sorted by relevance
83 KeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST() local84 ASSERT_TRUE(key_exchange != nullptr); in TEST()88 ASSERT_FALSE(key_exchange->CalculateSharedKey( in TEST()115 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST() local116 ASSERT_TRUE(key_exchange != nullptr); in TEST()119 ASSERT_FALSE(key_exchange->CalculateSharedKey(reinterpret_cast<const uint8_t*>(public_key), in TEST()126 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 …]
53 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST() local55 ASSERT_TRUE(key_exchange->public_value(&peer_public_value)); in TEST()65 kem->Decrypt(key_exchange->private_key(), output_encrypted_key, &decrypted_clear_key)); in TEST()
63 NistCurveKeyExchange* key_exchange = new NistCurveKeyExchange(key.release(), &error); in GenerateKeyExchange() local67 return key_exchange; in GenerateKeyExchange()