Changeset View
Changeset View
Standalone View
Standalone View
mpi/ec.c
Context not available. | |||||
{ | { | ||||
gcry_err_code_t rc; | gcry_err_code_t rc; | ||||
if (ec && ec->dialect == ECC_DIALECT_ED25519) | if (ec | ||||
&& (ec->dialect == ECC_DIALECT_ED25519 | |||||
|| (ec->model == MPI_EC_EDWARDS | |||||
&& ec->dialect == ECC_DIALECT_SAFECURVE))) | |||||
rc = _gcry_ecc_eddsa_decodepoint (value, ec, result, NULL, NULL); | rc = _gcry_ecc_eddsa_decodepoint (value, ec, result, NULL, NULL); | ||||
else if (ec && ec->model == MPI_EC_MONTGOMERY) | else if (ec && ec->model == MPI_EC_MONTGOMERY) | ||||
rc = _gcry_ecc_mont_decodepoint (value, ec, result); | rc = _gcry_ecc_mont_decodepoint (value, ec, result); | ||||
Context not available. |