projects
/
BearSSL
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed efficiency pre-test on RSA prime generation (no security issue, but RSA key...
[BearSSL]
/
tools
/
brssl.h
diff --git
a/tools/brssl.h
b/tools/brssl.h
index
22fd712
..
a23ba00
100644
(file)
--- a/
tools/brssl.h
+++ b/
tools/brssl.h
@@
-298,11
+298,22
@@
int uses_ecdhe(unsigned suite);
*/
void list_names(void);
*/
void list_names(void);
+/*
+ * Print out all known elliptic curve names.
+ */
+void list_curves(void);
+
/*
* Get the symbolic name for an elliptic curve (by ID).
*/
const char *ec_curve_name(int curve);
/*
* Get the symbolic name for an elliptic curve (by ID).
*/
const char *ec_curve_name(int curve);
+/*
+ * Get a curve by symbolic name. If the name is not recognized, -1 is
+ * returned.
+ */
+int get_curve_by_name(const char *str);
+
/*
* Get the symbolic name for a hash function name (by ID).
*/
/*
* Get the symbolic name for a hash function name (by ID).
*/