summaryrefslogtreecommitdiff
path: root/lib/gnutls_algorithms.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-16 22:20:17 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-05-20 12:30:42 +0200
commita8e8ba0f5cea4f2356c539e48d17b1e662b49141 (patch)
tree36e81a209054f87f404a5a768ef3253f614e2f02 /lib/gnutls_algorithms.h
parentf90470a7b4c672a916c4513cecf4b9a6bce0eb67 (diff)
downloadgnutls-ecc.tar.gz
Initial ecc support. Adds support for anonymous ECDH ciphersuites.ecc
Diffstat (limited to 'lib/gnutls_algorithms.h')
-rw-r--r--lib/gnutls_algorithms.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/gnutls_algorithms.h b/lib/gnutls_algorithms.h
index 5c867b8dc6..049c1e218a 100644
--- a/lib/gnutls_algorithms.h
+++ b/lib/gnutls_algorithms.h
@@ -125,4 +125,28 @@ int _gnutls_kx_priority (gnutls_session_t session,
unsigned int _gnutls_pk_bits_to_subgroup_bits (unsigned int pk_bits);
+/* ECC */
+struct gnutls_ecc_curve_entry_st
+{
+ const char *name;
+ ecc_curve_t id;
+ int size; /* the size in bytes */
+
+ /** The prime that defines the field the curve is in (encoded in hex) */
+ const char *prime;
+ /** The fields B param (hex) */
+ const char *B;
+ /** The order of the curve (hex) */
+ const char *order;
+ /** The x co-ordinate of the base point on the curve (hex) */
+ const char *Gx;
+ /** The y co-ordinate of the base point on the curve (hex) */
+ const char *Gy;
+};
+typedef struct gnutls_ecc_curve_entry_st gnutls_ecc_curve_entry_st;
+
+const char * _gnutls_ecc_curve_get_name (ecc_curve_t curve);
+const gnutls_ecc_curve_entry_st * _gnutls_ecc_curve_get_params (ecc_curve_t curve);
+int _gnutls_ecc_curve_get_size (ecc_curve_t curve);
+
#endif