mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Merge pull request #142 from 35359595/master
check_scalar bug fix for legacy_compatibility feature
This commit is contained in:
commit
bd572dcd52
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue