Skip to content

Commit

Permalink
add doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jul 6, 2024
1 parent 1b070ca commit 2badede
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/traits/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ pub trait PublicKeyParts {
(self.n().bits() as usize + 7) / 8
}

/// Returns the parameters for montgomery operations.
fn n_params(&self) -> BoxedMontyParams;

/// Returns precision (in bits) of `n`.
fn n_bits_precision(&self) -> u32 {
self.n().bits_precision()
}
Expand All @@ -47,7 +49,10 @@ pub trait PrivateKeyParts: PublicKeyParts {
/// Returns an iterator over the CRT Values
fn crt_values(&self) -> Option<&[CrtValue]>;

/// Returns the params for `p` if precomupted.
fn p_params(&self) -> Option<&BoxedMontyParams>;

/// Returns the params for `q` if precomupted.
fn q_params(&self) -> Option<&BoxedMontyParams>;
}

Expand Down

0 comments on commit 2badede

Please sign in to comment.