diff --git a/cipher/src/stream.rs b/cipher/src/stream.rs index 33902bb19..88feb8703 100644 --- a/cipher/src/stream.rs +++ b/cipher/src/stream.rs @@ -49,8 +49,8 @@ pub trait StreamCipher { /// Apply keystream to `inout` without checking for keystream repetition. /// - ///
- /// WARNING + ///
+ /// WARNING /// /// This method should be used with extreme caution! Triggering keystream repetition can expose /// the stream cipher to chosen plaintext attacks. @@ -59,8 +59,8 @@ pub trait StreamCipher { /// Apply keystream to `buf` without checking for keystream repetition. /// - ///
- /// WARNING + ///
+ /// WARNING /// /// This method should be used with extreme caution! Triggering keystream repetition can expose /// the stream cipher to chosen plaintext attacks. @@ -69,8 +69,8 @@ pub trait StreamCipher { /// Apply keystream to data behind `buf` without checking for keystream repetition. /// - ///
- /// WARNING + ///
+ /// WARNING /// /// This method should be used with extreme caution! Triggering keystream repetition can expose /// the stream cipher to chosen plaintext attacks. @@ -88,8 +88,8 @@ pub trait StreamCipher { /// # Errors /// Returns [`NotEqualError`] if the `input` and `output` buffers have different lengths. /// - ///
- /// WARNING + ///
+ /// WARNING /// /// This method should be used with extreme caution! Triggering keystream repetition can expose /// the stream cipher to chosen plaintext attacks. diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index 7892663be..75eeb26d2 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -36,7 +36,8 @@ pub trait BatchInvert: Field { /// Security Warning /// /// This should NOT be used on secret values! - /// + /// + ///
fn batch_invert_in_place_vartime(elements: &mut [Self], scratch_space: &mut [Self]) -> Self { // Call the constant-time implementation by default Self::batch_invert_in_place(elements, scratch_space) @@ -95,6 +96,7 @@ where /// /// Variable-time operations should only be used on non-secret values, and may potentially leak /// secret values! +/// ///
pub trait MulVartime: Mul { /// Multiply `self` by `rhs` in variable-time. diff --git a/elliptic-curve/src/point.rs b/elliptic-curve/src/point.rs index 7cf66006f..7ed3e2d07 100644 --- a/elliptic-curve/src/point.rs +++ b/elliptic-curve/src/point.rs @@ -60,7 +60,8 @@ pub trait BatchNormalize { /// Security Warning /// /// This should NOT be used on points which represent secrets! - /// + /// + ///
fn batch_normalize_vartime(points: &Points) -> Self::Output { // Call the constant-time implementation by default Self::batch_normalize(points)