diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-23 11:13:45 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-11-29 11:53:56 +0100 |
commit | 1d5e9385c20f8bc84ee45af2334f18b8a47c2dab (patch) | |
tree | 10e733ab94804e68e27d45cc5ecec3ae6c053e88 /openpgp/src/crypto/s2k.rs | |
parent | f9864807988a2702df0b1c7090e85d79055693ea (diff) |
openpgp: Fix byte grouping.
- A non-standard byte-grouping can be quite confusing.
- Found with the help of
https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
Diffstat (limited to 'openpgp/src/crypto/s2k.rs')
-rw-r--r-- | openpgp/src/crypto/s2k.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/s2k.rs b/openpgp/src/crypto/s2k.rs index 40ae2e70..6e618e0c 100644 --- a/openpgp/src/crypto/s2k.rs +++ b/openpgp/src/crypto/s2k.rs @@ -304,7 +304,7 @@ impl S2K { hash_bytes)).into()); } 11..=32 => { - let m = 0b1111_000000 << (msb - 11); + let m = 0b11_1100_0000 << (msb - 11); let t = 1 << (msb - 11); (m, t - 1) |