Skip to content

Commit

Permalink
Fix rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Nov 19, 2024
1 parent 477da32 commit fc7b672
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions aws-lc-rs/src/cipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ impl EncryptingKey {
}

/// Constructs an `EncryptingKey` operating in electronic code book mode (ECB) using the provided key.
///
///
/// # ☠️ ️️️DANGER ☠️
/// Offered for computability purposes only. This is an extremely dangerous mode, and
/// very likely not what you want to use.
Expand Down Expand Up @@ -571,7 +571,7 @@ impl EncryptingKey {
/// Encrypts the data provided in `in_out` in-place.
/// Returns a [`DecryptionContext`] with the randomly generated IV that was used to encrypt
/// the data provided.
///
///
/// If `EncryptingKey` is operating in `OperatingMode::ECB`, then `in_out.len()` must be a multiple
/// of the block length.
///
Expand All @@ -587,7 +587,7 @@ impl EncryptingKey {
/// This is considered "less safe" because the caller could potentially construct
/// a `EncryptionContext` from a previously used IV (initialization vector).
/// Returns a [`DecryptionContext`] produced from the provided `EncryptionContext`.
///
///
/// If `EncryptingKey` is operating in `OperatingMode::ECB`, then `in_out.len()` must be a multiple
/// of the block length.
///
Expand Down Expand Up @@ -694,7 +694,7 @@ impl DecryptingKey {

/// Decrypts the data provided in `in_out` in-place.
/// Returns a references to the decrypted data.
///
///
/// If `DecryptingKey` is operating in `OperatingMode::ECB`, then `in_out.len()` must be a multiple
/// of the block length.
///
Expand Down
4 changes: 2 additions & 2 deletions aws-lc-rs/src/cipher/padded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl PaddedBlockEncryptingKey {

/// Constructs a new `PaddedBlockEncryptingKey` cipher with electronic code book (ECB) mode.
/// Plaintext data is padded following the PKCS#7 scheme.
///
///
/// # ☠️ ️️️DANGER ☠️
/// Offered for computability purposes only. This is an extremely dangerous mode, and
/// very likely not what you want to use.
Expand Down Expand Up @@ -210,7 +210,7 @@ impl PaddedBlockDecryptingKey {

/// Constructs a new `PaddedBlockDecryptingKey` cipher with electronic code book (ECB) mode.
/// Decrypted data is unpadded following the PKCS#7 scheme.
///
///
/// # ☠️ ️️️DANGER ☠️
/// Offered for computability purposes only. This is an extremely dangerous mode, and
/// very likely not what you want to use.
Expand Down

0 comments on commit fc7b672

Please sign in to comment.