Lines Matching refs:curve
47 static TEE_Result ecc_get_keysize(uint32_t curve, uint32_t algo, in ecc_get_keysize() argument
50 switch (curve) { in ecc_get_keysize()
87 static mbedtls_ecp_group_id curve_to_group_id(uint32_t curve) in curve_to_group_id() argument
89 switch (curve) { in curve_to_group_id()
119 res = ecc_get_keysize(key->curve, 0, &key_size_bytes, &key_size_bits); in ecc_generate_keypair()
129 gid = curve_to_group_id(key->curve); in ecc_generate_keypair()
191 gid = curve_to_group_id(key->curve); in ecc_sign()
200 res = ecc_get_keysize(key->curve, algo, &key_size_bytes, in ecc_sign()
269 gid = curve_to_group_id(key->curve); in ecc_verify()
280 res = ecc_get_keysize(key->curve, algo, in ecc_verify()
326 gid = curve_to_group_id(private_key->curve); in ecc_shared_secret()
414 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_keypair()
421 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_keypair()
428 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_keypair()
514 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_public_key()
521 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_public_key()
528 s->curve = TEE_ECC_CURVE_SM2; in crypto_asym_alloc_ecc_public_key()