Fix misnamed error type.

This commit is contained in:
Isis Lovecruft 2020-07-16 21:49:14 +00:00
parent b84f1df47b
commit 69004599c5
No known key found for this signature in database
GPG key ID: AB41313533E8E812

View file

@ -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;