Skip to content

Commit

Permalink
style: Shorten paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Jul 25, 2024
1 parent bc33988 commit 047fd9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/scryptenc/src/decrypt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use aes::cipher::{generic_array::GenericArray, KeyIvInit, StreamCipher};
use hmac::Mac;

use crate::{
error::{Error, Result},
format::{DerivedKey, Header},
Aes256Ctr128BE, HmacSha256, HmacSha256Key, HmacSha256Output, HEADER_SIZE, TAG_SIZE,
Aes256Ctr128BE, Error, HmacSha256, HmacSha256Key, HmacSha256Output, Result, HEADER_SIZE,
TAG_SIZE,
};

/// Decryptor for the scrypt encrypted data format.
Expand Down
5 changes: 1 addition & 4 deletions crates/scryptenc/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ use hmac::{
use rand::{rngs::StdRng, Rng, SeedableRng};
use sha2::{Digest, Sha256};

use crate::{
error::{Error, Result},
Aes256Ctr128BE, HmacSha256, HmacSha256Key, HmacSha256Output, Params,
};
use crate::{Aes256Ctr128BE, Error, HmacSha256, HmacSha256Key, HmacSha256Output, Params, Result};

/// A type alias for magic number of the scrypt encrypted data format.
type MagicNumber = [u8; 6];
Expand Down
2 changes: 1 addition & 1 deletion crates/scryptenc/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

//! The scrypt parameters.

use crate::{error::Result, format::Header};
use crate::{format::Header, Result};

/// The scrypt parameters used for the encrypted data.
#[derive(Clone, Copy, Debug)]
Expand Down

0 comments on commit 047fd9e

Please sign in to comment.