Skip to content

Commit

Permalink
vartime remark (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwebiii authored Nov 13, 2023
1 parent 6247618 commit 834a664
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/uint/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ use crate::{CtChoice, Limb, Uint, Word};

impl<const LIMBS: usize> Uint<LIMBS> {
/// Returns `true` if the bit at position `index` is set, `false` otherwise.
///
/// # Remarks
/// This operation is variable time with respect to `index` only.
#[inline(always)]
pub const fn bit_vartime(&self, index: usize) -> bool {
if index >= Self::BITS {
Expand Down

0 comments on commit 834a664

Please sign in to comment.