Skip to content

Commit

Permalink
Move out into_result calls in modified parts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed Dec 11, 2023
1 parent abe0461 commit f25b14f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mbedtls/src/hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ impl Hkdf {
okm.as_mut_ptr(),
okm.len(),
)
.into_result()?;
Ok(())
}
.into_result()?;
Ok(())
}

/// This is the HMAC-based Extract-and-Expand Key Derivation Function (HKDF).
Expand Down Expand Up @@ -280,9 +280,9 @@ impl Hkdf {
okm.as_mut_ptr(),
okm.len(),
)
.into_result()?;
Ok(())
}
.into_result()?;
Ok(())
}

/// Takes the input keying material `ikm` and extracts from it a
Expand Down Expand Up @@ -326,9 +326,9 @@ impl Hkdf {
ikm.len(),
prk.as_mut_ptr(),
)
.into_result()?;
Ok(())
}
.into_result()?;
Ok(())
}

/// Expand the supplied `prk` into several additional pseudorandom keys, which is the output of the HKDF.
Expand Down Expand Up @@ -373,9 +373,9 @@ impl Hkdf {
okm.as_mut_ptr(),
okm.len(),
)
.into_result()?;
Ok(())
}
.into_result()?;
Ok(())
}
}

Expand Down

0 comments on commit f25b14f

Please sign in to comment.