richardphibel / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
a5e32e
commit 23770e1a4f28c56a31fe600cae332c77333b60b6
a5e32e
Author: Demi Marie Obenour <athena@invisiblethingslab.com>
a5e32e
Date:   Sat Mar 6 03:23:41 2021 -0500
a5e32e
a5e32e
    rpmsign: support EdDSA signatures
a5e32e
    
a5e32e
    They were previously rejected
a5e32e
a5e32e
diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
a5e32e
index 28cd91576..d8c84e937 100644
a5e32e
--- a/sign/rpmgensig.c
a5e32e
+++ b/sign/rpmgensig.c
a5e32e
@@ -155,6 +155,7 @@ static rpmtd makeSigTag(Header sigh, int ishdr, uint8_t *pkt, size_t pktlen)
a5e32e
     pubkey_algo = pgpDigParamsAlgo(sigp, PGPVAL_PUBKEYALGO);
a5e32e
     switch (pubkey_algo) {
a5e32e
     case PGPPUBKEYALGO_DSA:
a5e32e
+    case PGPPUBKEYALGO_EDDSA:
a5e32e
 	sigtag = ishdr ? RPMSIGTAG_DSA : RPMSIGTAG_GPG;
a5e32e
 	break;
a5e32e
     case PGPPUBKEYALGO_RSA: