Skip to content

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Oct 28, 2024

This affects the preferences of newly generated keys, which by default will have SHA512 as first hash algo preference.
SHA512 will also be used when signing, as long as the signing key declares support for the algorithm.

SHA512 is usually faster than SHA256 (former default) on 64-bit platforms.

NB: SHA512 cannot be used with RSA 512-bit keys (which are insecure, but may be used e.g. for testing), so error messages have been improved for this edge case.

@larabr larabr requested a review from twiss October 29, 2024 09:18
…hAlgorithm`)

SHA512 is usually faster than SHA256 on 64-bit platforms.

SHA-512 cannot be used with RSA/DSA keys shorter than 512-bits (which are insecure, but may
be used e.g. for testing), so error messages have been improved for this edge case.
@larabr larabr force-pushed the v6-default-hash-sha512 branch from 1a9a9f7 to fdab19d Compare October 30, 2024 18:32
@larabr larabr requested a review from twiss October 30, 2024 18:32
@larabr larabr merged commit 42d504a into openpgpjs:v6 Oct 30, 2024
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants