From 1b2e9f930950a9c7cfe0c68d51b2442dbaff2bb9 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 30 May 2017 14:03:46 +0200 Subject: [PATCH] Use SHA-256 instead of SHA-1 for self-signature and for subkey-binding-signature. --- libs/netpgp/src/signature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/netpgp/src/signature.c b/libs/netpgp/src/signature.c index f4aa81d0..463f36c2 100644 --- a/libs/netpgp/src/signature.c +++ b/libs/netpgp/src/signature.c @@ -639,7 +639,7 @@ pgp_sig_start_key_sig(pgp_create_sig_t *sig, * probably use the buffered writer to construct packets * (done), and also should share code for hash calculation) */ sig->sig.info.version = PGP_V4; - sig->sig.info.hash_alg = PGP_HASH_SHA1; + sig->sig.info.hash_alg = PGP_HASH_SHA256; // changed by Delta Chat from PGP_HASH_SHA1 to PGP_HASH_SHA256, EDIT BY MR (bp) sig->sig.info.key_alg = key->alg; sig->sig.info.type = type; sig->hashlen = (unsigned)-1;