Skip to content

Commit

Permalink
rustfmt fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cape committed Sep 23, 2021
1 parent 8293d07 commit 826cdb2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
15 changes: 8 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! not this one. This crate is a patch/fork of the execellent RustCrypto crate
//! to support a very, very niche use-case for MobileCoin, and as such it's
//! maintenance and security are necessarily going to lag behind that of
//! RustCrypto's crate.
//! RustCrypto's crate.
//!
//! # Original README
//!
Expand All @@ -26,13 +26,14 @@
//!
//! ## Security Notes
//!
//! This crate has received one [security audit by NCC Group][3], with no significant
//! findings. We would like to thank [MobileCoin][4] for funding the audit.
//! This crate has received one [security audit by NCC Group][3], with no
//! significant findings. We would like to thank [MobileCoin][4] for funding the
//! audit.
//!
//! All implementations contained in the crate are designed to execute in constant
//! time, either by relying on hardware intrinsics (i.e. AES-NI and CLMUL on
//! x86/x86_64), or using a portable implementation which is only constant time
//! on processors which implement constant-time multiplication.
//! All implementations contained in the crate are designed to execute in
//! constant time, either by relying on hardware intrinsics (i.e. AES-NI and
//! CLMUL on x86/x86_64), or using a portable implementation which is only
//! constant time on processors which implement constant-time multiplication.
//!
//! It is not suitable for use on processors with a variable-time multiplication
//! operation (e.g. short circuit on multiply-by-zero / multiply-by-one, such as
Expand Down
6 changes: 4 additions & 2 deletions tests/aes128gcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ extern crate hex_literal;
mod common;

use self::common::TestVector;
use mc_oblivious_aes_gcm::aead::{generic_array::GenericArray, Aead, NewAead, Payload};
use mc_oblivious_aes_gcm::Aes128Gcm;
use mc_oblivious_aes_gcm::{
aead::{generic_array::GenericArray, Aead, NewAead, Payload},
Aes128Gcm,
};

/// NIST CAVS vectors
///
Expand Down
6 changes: 4 additions & 2 deletions tests/aes256gcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ extern crate hex_literal;
mod common;

use self::common::TestVector;
use mc_oblivious_aes_gcm::aead::{generic_array::GenericArray, Aead, NewAead, Payload};
use mc_oblivious_aes_gcm::Aes256Gcm;
use mc_oblivious_aes_gcm::{
aead::{generic_array::GenericArray, Aead, NewAead, Payload},
Aes256Gcm,
};

/// NIST CAVS vectors
///
Expand Down

0 comments on commit 826cdb2

Please sign in to comment.