diff options
author | Stuart Stock <stuart@int08h.com> | 2019-01-19 14:21:35 -0600 |
---|---|---|
committer | Stuart Stock <stuart@int08h.com> | 2019-01-19 15:12:37 -0600 |
commit | dda66ba5b6ab2fbdee3b9fcd92741b1127f9c597 (patch) | |
tree | b1206f0f45ddb7634b6b0c313d6f63929b98aaa7 /src/kms/envelope.rs | |
parent | 88f029137b7f519dd842ff745434ffaef4c05f82 (diff) | |
download | roughenough-dda66ba5b6ab2fbdee3b9fcd92741b1127f9c597.zip |
Rust 2018 edition migration
Diffstat (limited to 'src/kms/envelope.rs')
-rw-r--r-- | src/kms/envelope.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/kms/envelope.rs b/src/kms/envelope.rs index 49f8d79..00a33bb 100644 --- a/src/kms/envelope.rs +++ b/src/kms/envelope.rs @@ -12,16 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. -extern crate hex; - use std::io::{Cursor, Read, Write}; use ring::aead::{open_in_place, seal_in_place, OpeningKey, SealingKey, AES_256_GCM}; use ring::rand::{SecureRandom, SystemRandom}; -use super::super::MIN_SEED_LENGTH; +use crate::MIN_SEED_LENGTH; use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; -use kms::{KmsError, KmsProvider, AD, DEK_SIZE_BYTES, NONCE_SIZE_BYTES, TAG_SIZE_BYTES}; +use crate::kms::{KmsError, KmsProvider, AD, DEK_SIZE_BYTES, NONCE_SIZE_BYTES, TAG_SIZE_BYTES}; const DEK_LEN_FIELD: usize = 2; const NONCE_LEN_FIELD: usize = 2; @@ -174,9 +172,9 @@ impl EnvelopeEncryption { #[cfg(test)] mod test { - use kms::envelope::{DEK_LEN_FIELD, MIN_PAYLOAD_SIZE, NONCE_LEN_FIELD}; - use kms::EnvelopeEncryption; - use kms::{KmsError, KmsProvider}; + use crate::kms::envelope::{DEK_LEN_FIELD, MIN_PAYLOAD_SIZE, NONCE_LEN_FIELD}; + use crate::kms::EnvelopeEncryption; + use crate::kms::{KmsError, KmsProvider}; struct MockKmsProvider {} |