diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-25 11:29:37 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-25 11:35:06 +0100 |
commit | 9c6174635ac40a32b273bf78493c1d6db3cc2d34 (patch) | |
tree | 6cb90209caa44931abe6061144af3cfbd61711e5 /openpgp/src/crypto | |
parent | 6b3574906ed2cd647a6d4f8dcb3243e3dd0d5616 (diff) |
openpgp: Rename openpgp::constants to openpgp::types.
- Fixes #381.
Diffstat (limited to 'openpgp/src/crypto')
-rw-r--r-- | openpgp/src/crypto/aead.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/asymmetric.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/ecdh.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/keygrip.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/mem.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/mod.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/mpis.rs | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/openpgp/src/crypto/aead.rs b/openpgp/src/crypto/aead.rs index 72d029a4..50255d2f 100644 --- a/openpgp/src/crypto/aead.rs +++ b/openpgp/src/crypto/aead.rs @@ -5,7 +5,7 @@ use std::io; use nettle::{aead, cipher}; use buffered_reader::BufferedReader; -use crate::constants::{ +use crate::types::{ AEADAlgorithm, SymmetricAlgorithm, }; diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs index 41d61014..e67461ce 100644 --- a/openpgp/src/crypto/asymmetric.rs +++ b/openpgp/src/crypto/asymmetric.rs @@ -5,7 +5,7 @@ use nettle::{dsa, ecc, ecdsa, ed25519, rsa, Yarrow}; use crate::packet::{self, key, Key}; use crate::crypto::SessionKey; use crate::crypto::mpis::{self, MPI}; -use crate::constants::{Curve, HashAlgorithm}; +use crate::types::{Curve, HashAlgorithm}; use crate::Error; use crate::Result; diff --git a/openpgp/src/crypto/ecdh.rs b/openpgp/src/crypto/ecdh.rs index 15228f59..9f281865 100644 --- a/openpgp/src/crypto/ecdh.rs +++ b/openpgp/src/crypto/ecdh.rs @@ -7,7 +7,7 @@ use crate::packet::{ key, }; use crate::Result; -use crate::constants::{ +use crate::types::{ Curve, HashAlgorithm, SymmetricAlgorithm, diff --git a/openpgp/src/crypto/keygrip.rs b/openpgp/src/crypto/keygrip.rs index 66240b92..08afb12a 100644 --- a/openpgp/src/crypto/keygrip.rs +++ b/openpgp/src/crypto/keygrip.rs @@ -2,7 +2,7 @@ use std::fmt; use crate::Error; use crate::Result; -use crate::constants::{Curve, HashAlgorithm}; +use crate::types::{Curve, HashAlgorithm}; use crate::crypto::mpis::{MPI, PublicKey}; /// A proprietary, protocol agnostic identifier for public keys. diff --git a/openpgp/src/crypto/mem.rs b/openpgp/src/crypto/mem.rs index aab9abee..dd4fc244 100644 --- a/openpgp/src/crypto/mem.rs +++ b/openpgp/src/crypto/mem.rs @@ -130,7 +130,7 @@ const ENCRYPTED_MEMORY_PAGE_SIZE: usize = 4096; mod has_access_to_prekey { use std::io::{self, Cursor, Write}; use lazy_static; - use crate::constants::{AEADAlgorithm, HashAlgorithm, SymmetricAlgorithm}; + use crate::types::{AEADAlgorithm, HashAlgorithm, SymmetricAlgorithm}; use crate::crypto::{aead, SessionKey}; use super::*; diff --git a/openpgp/src/crypto/mod.rs b/openpgp/src/crypto/mod.rs index 150014cc..fd43481c 100644 --- a/openpgp/src/crypto/mod.rs +++ b/openpgp/src/crypto/mod.rs @@ -6,7 +6,7 @@ use std::fmt; use nettle::{Random, Yarrow}; -use crate::constants::HashAlgorithm; +use crate::types::HashAlgorithm; use crate::Result; pub(crate) mod aead; diff --git a/openpgp/src/crypto/mpis.rs b/openpgp/src/crypto/mpis.rs index e3a7f483..8500a1ed 100644 --- a/openpgp/src/crypto/mpis.rs +++ b/openpgp/src/crypto/mpis.rs @@ -6,7 +6,7 @@ use std::cmp::Ordering; use quickcheck::{Arbitrary, Gen}; use rand::Rng; -use crate::constants::{ +use crate::types::{ Curve, HashAlgorithm, PublicKeyAlgorithm, |