From 650dad4e18f458f60a2cdb43be32356753ed6518 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 26 May 2017 15:20:38 +0200 Subject: Added support for EdDSA (Ed25519) curve keys This adds support for draft-ietf-curdle-pkix-04. Resolves #25 Signed-off-by: Nikos Mavrogiannopoulos --- lib/x509/x509_int.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/x509/x509_int.h') diff --git a/lib/x509/x509_int.h b/lib/x509/x509_int.h index 13cbc96e4b..6160a50e0c 100644 --- a/lib/x509/x509_int.h +++ b/lib/x509/x509_int.h @@ -244,6 +244,11 @@ int _gnutls_privkey_decode_ecc_key(ASN1_TYPE* pkey_asn, const gnutls_datum_t * gnutls_x509_privkey_t pkey, gnutls_ecc_curve_t curve); +int _gnutls_privkey_decode_eddsa_key(ASN1_TYPE* pkey_asn, + const gnutls_datum_t *raw_key, + gnutls_x509_privkey_t pkey, + gnutls_ecc_curve_t curve); + int _gnutls_x509_read_ecc_params(uint8_t * der, int dersize, unsigned int *curve); @@ -342,6 +347,9 @@ int _gnutls_x509_write_ecc_params(gnutls_ecc_curve_t curve, int _gnutls_x509_write_ecc_pubkey(gnutls_pk_params_st * params, gnutls_datum_t * der); +int _gnutls_x509_write_eddsa_pubkey(gnutls_pk_params_st * params, + gnutls_datum_t * der); + int _gnutls_x509_write_pubkey_params(gnutls_pk_algorithm_t algo, gnutls_pk_params_st * params, -- cgit v1.2.1