Skip to content

Commit

Permalink
pss: make salt_len a const method
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Sep 14, 2024
1 parent 3228a56 commit b386f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pss/signing_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ where
}

/// Return specified salt length for this key
pub fn salt_len(&self) -> usize {
pub const fn salt_len(&self) -> usize {
self.salt_len
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pss/verifying_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ where
}

/// Return specified salt length for this key
pub fn salt_len(&self) -> usize {
pub const fn salt_len(&self) -> usize {
self.salt_len
}
}
Expand Down

0 comments on commit b386f43

Please sign in to comment.