summaryrefslogtreecommitdiff
path: root/lib/algorithms/sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithms/sign.c')
-rw-r--r--lib/algorithms/sign.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/algorithms/sign.c b/lib/algorithms/sign.c
index be4b19ec18..55be3d9bdc 100644
--- a/lib/algorithms/sign.c
+++ b/lib/algorithms/sign.c
@@ -127,6 +127,9 @@ static const gnutls_sign_entry_st sign_algorithms[] = {
{"RSA-PSS-SHA512", PK_PKIX1_RSA_PSS_OID, GNUTLS_SIGN_RSA_PSS_SHA512,
GNUTLS_PK_RSA, GNUTLS_DIG_SHA512, {{8, 6}}},
+ /* The hash algorithm here is set to be SHA512, although that is
+ * an internal detail of Ed25519; we set it, because CMS/PKCS#7 requires
+ * that mapping. */
{"EdDSA-Ed25519", SIG_EDDSA_SHA512_OID, GNUTLS_SIGN_EDDSA_ED25519,
GNUTLS_PK_EDDSA_ED25519, GNUTLS_DIG_SHA512, {{8, 7}}},