Skip to content

Commit

Permalink
Apply review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 committed Dec 1, 2020
1 parent 1db73c6 commit b55d432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/ctap/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ impl PersistentStore {
Ok(self.store.insert(key::MIN_PIN_LENGTH, &[min_pin_length])?)
}

/// Returns a list of RP IDs that used to check if reading the minimum PIN length is allowed.
/// Returns the list of RP IDs that are used to check if reading the minimum PIN length is
/// allowed.
#[cfg(feature = "with_ctap2_1")]
pub fn _min_pin_length_rp_ids(&self) -> Result<Vec<String>, Ctap2StatusCode> {
let rp_ids = self
Expand All @@ -400,7 +401,7 @@ impl PersistentStore {
Ok(rp_ids.unwrap_or(vec![]))
}

/// Set a list of RP IDs that used to check if reading the minimum PIN length is allowed.
/// Sets the list of RP IDs that are used to check if reading the minimum PIN length is allowed.
#[cfg(feature = "with_ctap2_1")]
pub fn _set_min_pin_length_rp_ids(
&mut self,
Expand Down
3 changes: 1 addition & 2 deletions src/ctap/storage/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ make_partition! {

/// The encryption and hmac keys.
///
/// This entry is always present. It is generated at startup if absent. This is not a persistent
/// key because its value should change after a CTAP reset.
/// This entry is always present. It is generated at startup if absent.
MASTER_KEYS = 2046;

/// The global signature counter.
Expand Down

0 comments on commit b55d432

Please sign in to comment.