Skip to content

Commit

Permalink
Merge pull request dalek-cryptography#142 from 35359595/master
Browse files Browse the repository at this point in the history
check_scalar bug fix for legacy_compatibility feature
  • Loading branch information
isislovecruft authored Sep 10, 2020
2 parents 5fe7c88 + da959c0 commit bd572dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn check_scalar(bytes: [u8; 32]) -> Result<Scalar, SignatureError> {
// This is compatible with ed25519-donna and libsodium when
// -DED25519_COMPAT is NOT specified.
if bytes[31] & 224 != 0 {
return Err(SignatureError(InternalError::ScalarFormatError));
return Err(InternalError::ScalarFormatError.into());
}

Ok(Scalar::from_bits(bytes))
Expand Down

0 comments on commit bd572dc

Please sign in to comment.