Skip to content

Commit ae7d4be

Browse files
authored
password-hash: rustdoc fixups (#2336)
1 parent 35e0e9a commit ae7d4be

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

password-hash/src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ pub trait PasswordHasher<H> {
133133

134134
/// Trait for password hashing functions which support customization.
135135
///
136-
/// Generic around a password hash to be returned (typically [`PasswordHash`])
136+
/// Generic around a password hash to be returned (typically [`phc::PasswordHash`]).
137137
pub trait CustomizedPasswordHasher<H> {
138138
/// Algorithm-specific parameters.
139139
type Params: Clone + Debug + Default;
140140

141-
/// Compute a [`PasswordHash`] from the provided password using an explicit set of customized
141+
/// Compute a password hash from the provided password using an explicit set of customized
142142
/// algorithm parameters as opposed to the defaults.
143143
///
144144
/// When in doubt, use [`PasswordHasher::hash_password`] instead.
@@ -156,8 +156,8 @@ pub trait CustomizedPasswordHasher<H> {
156156
params: Self::Params,
157157
) -> Result<H>;
158158

159-
/// Compute a [`PasswordHash`] using customized parameters only, using the default
160-
/// algorithm and version.
159+
/// Compute a password hash using customized parameters only, using the default algorithm and
160+
/// version.
161161
///
162162
/// # Errors
163163
/// These will vary by algorithm/implementation of this trait, but may be due to:
@@ -175,20 +175,20 @@ pub trait CustomizedPasswordHasher<H> {
175175

176176
/// Trait for password verification.
177177
///
178-
/// Generic around a password hash to be returned (typically [`phc::PasswordHash`])
178+
/// Generic around a password hash to be returned (typically [`phc::PasswordHash`]).
179179
///
180180
/// Automatically impl'd for type that impl [`PasswordHasher`] with [`phc::PasswordHash`] as `H`.
181181
///
182-
/// This trait is object safe and can be used to implement abstractions over
183-
/// multiple password hashing algorithms.
182+
/// This trait is object safe and can be used to implement abstractions over multiple password
183+
/// hashing algorithms.
184184
pub trait PasswordVerifier<H: ?Sized> {
185185
/// Compute this password hashing function against the provided password using the parameters
186186
/// from the provided password hash and see if the computed output matches.
187187
///
188188
/// # Errors
189-
/// - Returns `Error::Algorithm` if the algorithm being requested by the hash `H` is unsupported
190-
/// - Returns `Error::PasswordInvalid` if the hash for the supplied password does not match
191-
/// the provided hash
189+
/// - Returns [`Error::Algorithm`] if the algorithm requested by the hash `H` is unsupported
190+
/// - Returns [`Error::PasswordInvalid`] if the computed hash for the supplied password does not
191+
/// match the expected hash
192192
/// - May return other algorithm-specific errors
193193
fn verify_password(&self, password: &[u8], hash: &H) -> Result<()>;
194194
}

0 commit comments

Comments
 (0)