diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-10 15:26:42 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-12 10:31:29 +0100 |
commit | c93f7d53ecf9700eed6245b81031b7512f8ec604 (patch) | |
tree | 05cfc4791c3cdda7e88308fb37a6f953b77b08dc /openpgp/src/crypto/mem.rs | |
parent | 476ec660e251f385376f5a166de061749925fd46 (diff) |
openpgp: Make crypto::Hash::digest fallible.
Diffstat (limited to 'openpgp/src/crypto/mem.rs')
-rw-r--r-- | openpgp/src/crypto/mem.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/mem.rs b/openpgp/src/crypto/mem.rs index 038d12c6..96f80483 100644 --- a/openpgp/src/crypto/mem.rs +++ b/openpgp/src/crypto/mem.rs @@ -279,7 +279,7 @@ mod has_access_to_prekey { .expect("Mandatory algorithm unsupported"); PREKEY.iter().for_each(|page| ctx.update(page)); let mut sk: SessionKey = vec![0; 256/8].into(); - ctx.digest(&mut sk); + let _ = ctx.digest(&mut sk); sk } |