Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Franziskus Kiefer <[email protected]>
  • Loading branch information
keks and franziskuskiefer authored Nov 14, 2024
1 parent a216c87 commit 7584c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ed25519/src/impl_hacl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub enum Error {
/// - the signature is a 64 byte buffer,
/// - the payload buffer is not shorter than payload_len.
///
/// We enfore the first two using types, and the latter by using `payload.len()` and `payload_len`.
/// We enforce the first two using types, and the latter by using `payload.len()` and `payload_len`.
/// This has the caveat that `payload_len` must be <= u32::MAX, so we return an error if that is
/// not the case.
pub fn sign(payload: &[u8], private_key: &[u8; 32]) -> Result<[u8; 64], Error> {
Expand All @@ -29,7 +29,7 @@ pub fn sign(payload: &[u8], private_key: &[u8; 32]) -> Result<[u8; 64], Error> {
/// - the signature is a 64 byte buffer,
/// - the payload buffer is not shorter than payload_len.
///
/// We enfore the first two using types, and the latter by using `payload.len()` and `payload_len`.
/// We enforce the first two using types, and the latter by using `payload.len()` and `payload_len`.
/// This has the caveat that `payload_len` must be <= u32::MAX, so we return an error if that is
/// not the case.
///
Expand Down

0 comments on commit 7584c13

Please sign in to comment.