diff --git a/aws-lc-rs/src/cipher.rs b/aws-lc-rs/src/cipher.rs index 01b47e984a..14990e19a0 100644 --- a/aws-lc-rs/src/cipher.rs +++ b/aws-lc-rs/src/cipher.rs @@ -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. @@ -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. /// @@ -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. /// @@ -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. /// diff --git a/aws-lc-rs/src/cipher/padded.rs b/aws-lc-rs/src/cipher/padded.rs index 0dc137437a..25c7bd99df 100644 --- a/aws-lc-rs/src/cipher/padded.rs +++ b/aws-lc-rs/src/cipher/padded.rs @@ -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. @@ -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.