mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Fix misnamed error type.
This commit is contained in:
parent
b84f1df47b
commit
69004599c5
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.
|
let ctx: &[u8] = context.unwrap_or(b""); // By default, the context is an empty string.
|
||||||
|
|
||||||
if ctx.len() > 255 {
|
if ctx.len() > 255 {
|
||||||
return Err(SignatureError(InternalError::PrehashedContextError));
|
return Err(SignatureError(InternalError::PrehashedContextLengthError));
|
||||||
}
|
}
|
||||||
|
|
||||||
let ctx_len: u8 = ctx.len() as u8;
|
let ctx_len: u8 = ctx.len() as u8;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue