diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-21 16:00:10 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-21 16:00:10 +0100 |
commit | b9d978164b7f28b20776e5a28cccac51cf2df783 (patch) | |
tree | 2f6eaa27ddafad93ba838d6c33a9b36141bac3e0 | |
parent | 7df48a11d4fe7fda5b47369793f794549b78eea3 (diff) |
openpgp: Change default hash algorithm to SHA512.
- SHA512 is almost twice as fast as SHA256 on 64-bit architectures
because it operates on 64-bit words.
-rw-r--r-- | openpgp/src/types/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs index fffabaf1..1e6b31c3 100644 --- a/openpgp/src/types/mod.rs +++ b/openpgp/src/types/mod.rs @@ -739,7 +739,9 @@ pub enum HashAlgorithm { impl Default for HashAlgorithm { fn default() -> Self { - HashAlgorithm::SHA256 + // SHA512 is almost twice as fast as SHA256 on 64-bit + // architectures because it operates on 64-bit words. + HashAlgorithm::SHA512 } } |