From e87e907128c480196c89a4aa3317360b9e1e0e6e Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 16 Feb 2017 11:01:48 +0100 Subject: [PATCH] Constants for Edward Curves --- src/gldns/rrdef.h | 2 ++ src/gldns/wire2str.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gldns/rrdef.h b/src/gldns/rrdef.h index f00fa33c..58132c23 100644 --- a/src/gldns/rrdef.h +++ b/src/gldns/rrdef.h @@ -372,6 +372,8 @@ enum gldns_enum_algorithm GLDNS_ECC_GOST = 12, /* RFC 5933 */ GLDNS_ECDSAP256SHA256 = 13, /* RFC 6605 */ GLDNS_ECDSAP384SHA384 = 14, /* RFC 6605 */ + GLDNS_ED25519 = 15, /* RFC 8080 */ + GLDNS_ED448 = 16, /* RFC 8080 */ GLDNS_INDIRECT = 252, GLDNS_PRIVATEDNS = 253, GLDNS_PRIVATEOID = 254 diff --git a/src/gldns/wire2str.c b/src/gldns/wire2str.c index 2d427d86..35a6df9d 100644 --- a/src/gldns/wire2str.c +++ b/src/gldns/wire2str.c @@ -47,6 +47,8 @@ static gldns_lookup_table gldns_algorithms_data[] = { { GLDNS_ECC_GOST, "ECC-GOST"}, { GLDNS_ECDSAP256SHA256, "ECDSAP256SHA256"}, { GLDNS_ECDSAP384SHA384, "ECDSAP384SHA384"}, + { GLDNS_ED25519, "ED25519"}, + { GLDNS_ED448, "ED448"}, { GLDNS_INDIRECT, "INDIRECT" }, { GLDNS_PRIVATEDNS, "PRIVATEDNS" }, { GLDNS_PRIVATEOID, "PRIVATEOID" },