diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-06-27 13:44:52 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-06-27 15:18:37 +0200 |
commit | 2cabbfa80fc8bd7814b76a66ae916cba0b30c711 (patch) | |
tree | 3c2092ec1e6bd1bf96239591dfeeeb97206415e4 /openpgp/src/crypto/aead.rs | |
parent | 7c9198d6e5ba4b7e475185b496dcaeb3e4ec0498 (diff) |
openpgp: Refactor memory protection.
- Create a new module for memory protection. Move common code from
`Password` and `SessionKey` to a new type `Protected`.
Diffstat (limited to 'openpgp/src/crypto/aead.rs')
-rw-r--r-- | openpgp/src/crypto/aead.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/crypto/aead.rs b/openpgp/src/crypto/aead.rs index 167a4f31..b6ca09d3 100644 --- a/openpgp/src/crypto/aead.rs +++ b/openpgp/src/crypto/aead.rs @@ -15,7 +15,7 @@ use conversions::{ use Error; use Result; use crypto::SessionKey; -use super::secure_cmp; +use crypto::mem::secure_cmp; impl AEADAlgorithm { /// Returns the digest size of the AEAD algorithm. |