Lines Matching refs:curve
31 static TEE_Result ecc_get_curve_info(uint32_t curve, uint32_t algo, in ecc_get_curve_info() argument
49 switch (curve) { in ecc_get_curve_info()
116 const ltc_ecc_curve *curve = NULL; in ecc_set_curve_from_name() local
119 ltc_res = ecc_find_curve(curve_name, &curve); in ecc_set_curve_from_name()
123 ltc_res = ecc_set_curve(curve, ltc_key); in ecc_set_curve_from_name()
140 res = ecc_get_curve_info(key->curve, 0, &key_size_bytes, &key_size_bits, in _ltc_ecc_generate_keypair()
195 res = ecc_get_curve_info(key->curve, algo, key_size_bytes, NULL, &name); in ecc_populate_ltc_private_key()
226 res = ecc_get_curve_info(key->curve, algo, key_size_bytes, NULL, &name); in ecc_populate_ltc_public_key()
327 if (private_key->curve != public_key->curve) in _ltc_ecc_shared_secret()
430 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_keypair()
437 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_keypair()
444 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_keypair()
508 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_public_key()
515 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_public_key()
522 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_public_key()