aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ldns-key2ds.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ldns-key2ds.c')
-rw-r--r--examples/ldns-key2ds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/ldns-key2ds.c b/examples/ldns-key2ds.c
index 9426f685929b..be1f8c654ac1 100644
--- a/examples/ldns-key2ds.c
+++ b/examples/ldns-key2ds.c
@@ -63,6 +63,14 @@ suitable_hash(ldns_signing_algorithm algorithm)
case LDNS_SIGN_ECDSAP384SHA384:
return LDNS_SHA384;
#endif
+#ifdef USE_ED25519
+ case LDNS_SIGN_ED25519:
+ return LDNS_SHA256;
+#endif
+#ifdef USE_ED448
+ case LDNS_SIGN_ED448:
+ return LDNS_SHA256;
+#endif
default: break;
}
return LDNS_SHA1;