mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 10:19:16 +02:00
Use SHA-256 instead of SHA-1 for self-signature and for subkey-binding-signature.
This commit is contained in:
parent
b90a503325
commit
1b2e9f9309
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@ pgp_sig_start_key_sig(pgp_create_sig_t *sig,
|
||||||
* probably use the buffered writer to construct packets
|
* probably use the buffered writer to construct packets
|
||||||
* (done), and also should share code for hash calculation) */
|
* (done), and also should share code for hash calculation) */
|
||||||
sig->sig.info.version = PGP_V4;
|
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.key_alg = key->alg;
|
||||||
sig->sig.info.type = type;
|
sig->sig.info.type = type;
|
||||||
sig->hashlen = (unsigned)-1;
|
sig->hashlen = (unsigned)-1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue