Changeset View
Changeset View
Standalone View
Standalone View
common/sexputil.c
| Context not available. | |||||
| algo = gcry_pk_map_name (algoname); | algo = gcry_pk_map_name (algoname); | ||||
| if (algo == GCRY_PK_ECC) | if (algo == GCRY_PK_ECC) | ||||
| { | { | ||||
| gcry_sexp_t l1 = gcry_sexp_find_token (list, "flags", 0); | gcry_sexp_t l1; | ||||
| int i; | int i; | ||||
| l1 = gcry_sexp_find_token (list, "flags", 0); | |||||
| for (i = l1 ? gcry_sexp_length (l1)-1 : 0; i > 0; i--) | for (i = l1 ? gcry_sexp_length (l1)-1 : 0; i > 0; i--) | ||||
| { | { | ||||
| s = gcry_sexp_nth_data (l1, i, &n); | s = gcry_sexp_nth_data (l1, i, &n); | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| gcry_sexp_release (l1); | gcry_sexp_release (l1); | ||||
| l1 = gcry_sexp_find_token (list, "curve", 0); | |||||
| s = gcry_sexp_nth_data (l1, 1, &n); | |||||
| if (n == 5 && !memcmp (s, "Ed448", 5)) | |||||
| algo = GCRY_PK_EDDSA; | |||||
| gcry_sexp_release (l1); | |||||
| } | } | ||||
| out: | out: | ||||
| Context not available. | |||||