mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Fix no_std issue with new error types.
This commit is contained in:
parent
d3a5b3bd81
commit
5458ebef88
1 changed files with 1 additions and 1 deletions
|
|
@ -466,7 +466,7 @@ impl ExpandedSecretKey {
|
|||
let ctx: &[u8] = context.unwrap_or(b""); // By default, the context is an empty string.
|
||||
|
||||
if ctx.len() > 255 {
|
||||
return Err(SignatureError::from_source(InternalError::PrehashedContextLengthError));
|
||||
return Err(SignatureError::from(InternalError::PrehashedContextLengthError));
|
||||
}
|
||||
|
||||
let ctx_len: u8 = ctx.len() as u8;
|
||||
|
|
|
|||
Loading…
Reference in a new issue