diff options
author | Bodo Möller <bodo@openssl.org> | 2002-09-02 07:08:33 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-09-02 07:08:33 +0000 |
commit | 65b1d31df53fecefbf53dedd8fc4f9f64a62a92b (patch) | |
tree | bffd3682c63f03629053759a61870a0e238ed46e /crypto/ec/ec.h | |
parent | b499ed06d2afa4e495f0985ba3c571a1e6ee3f69 (diff) |
change API for looking at the internal curve list
Submitted by: Nils Larsch
Diffstat (limited to 'crypto/ec/ec.h')
-rw-r--r-- | crypto/ec/ec.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/crypto/ec/ec.h b/crypto/ec/ec.h index faca04aab9..094e05e168 100644 --- a/crypto/ec/ec.h +++ b/crypto/ec/ec.h @@ -184,12 +184,16 @@ EC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a, const BIGNUM /* EC_GROUP_new_by_nid() creates a EC_GROUP structure specified by a NID */ EC_GROUP *EC_GROUP_new_by_nid(int nid); -/* EC_GROUP_get0_comment() returns a pointer to the 'comment' field of - * ec_curve_data_st structure */ -const char *EC_GROUP_get0_comment(int nid); -/* internal function : ec_group_index2nid() returns the NID of curve - * with the given index i from the internal curve list */ -int ec_group_index2nid(int i); +/* handling of internal curves */ +typedef struct { + int nid; + const char *comment; + } EC_builtin_curve; +/* EC_builtin_curves(EC_builtin_curve *r, size_t size) returns number + * of all available curves or zero if a error occurred. + * In case r ist not zero nitems EC_builtin_curve structures + * are filled with the data of the first nitems internal groups */ +size_t EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems); /* EC_POINT functions */ |