Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions cipher/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub trait StreamCipher {

/// Apply keystream to `inout` without checking for keystream repetition.
///
/// <div><class = "warning">
/// <b>WARNING<b>
/// <div class="warning">
/// <b>WARNING</b>
///
/// This method should be used with extreme caution! Triggering keystream repetition can expose
/// the stream cipher to chosen plaintext attacks.
Expand All @@ -59,8 +59,8 @@ pub trait StreamCipher {

/// Apply keystream to `buf` without checking for keystream repetition.
///
/// <div><class = "warning">
/// <b>WARNING<b>
/// <div class="warning">
/// <b>WARNING</b>
///
/// This method should be used with extreme caution! Triggering keystream repetition can expose
/// the stream cipher to chosen plaintext attacks.
Expand All @@ -69,8 +69,8 @@ pub trait StreamCipher {

/// Apply keystream to data behind `buf` without checking for keystream repetition.
///
/// <div><class = "warning">
/// <b>WARNING<b>
/// <div class="warning">
/// <b>WARNING</b>
///
/// This method should be used with extreme caution! Triggering keystream repetition can expose
/// the stream cipher to chosen plaintext attacks.
Expand All @@ -88,8 +88,8 @@ pub trait StreamCipher {
/// # Errors
/// Returns [`NotEqualError`] if the `input` and `output` buffers have different lengths.
///
/// <div><class = "warning">
/// <b>WARNING<b>
/// <div class="warning">
/// <b>WARNING</b>
///
/// This method should be used with extreme caution! Triggering keystream repetition can expose
/// the stream cipher to chosen plaintext attacks.
Expand Down
4 changes: 3 additions & 1 deletion elliptic-curve/src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ pub trait BatchInvert: Field {
/// <b>Security Warning</b>
///
/// This should NOT be used on secret values!
/// </b>
///
/// </div>
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)
Expand Down Expand Up @@ -95,6 +96,7 @@ where
///
/// Variable-time operations should only be used on non-secret values, and may potentially leak
/// secret values!
///
/// </div>
pub trait MulVartime<Rhs = Self>: Mul<Rhs> {
/// Multiply `self` by `rhs` in variable-time.
Expand Down
3 changes: 2 additions & 1 deletion elliptic-curve/src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ pub trait BatchNormalize<Points: ?Sized> {
/// <b>Security Warning</b>
///
/// This should NOT be used on points which represent secrets!
/// </b>
///
/// </div>
fn batch_normalize_vartime(points: &Points) -> Self::Output {
// Call the constant-time implementation by default
Self::batch_normalize(points)
Expand Down