mirror of
https://github.com/saymrwulf/betrusted-curve25519-dalek-source.git
synced 2026-09-05 20:30:54 +00:00
promote illegal opcode to a panic
if the engine25519 hits an illegal opcode, really, that's a software bug that should be fixed. panic, so that we get a guru meditation and a bug report.
This commit is contained in:
parent
4170979f6a
commit
cdd1539ba8
1 changed files with 1 additions and 2 deletions
|
|
@ -53,8 +53,7 @@ pub fn was_engine_error(job_len: usize) -> bool {
|
|||
|
||||
let reason = engine.r(utra::engine::EV_PENDING);
|
||||
if reason & engine.ms(utra::engine::EV_PENDING_ILLEGAL_OPCODE, 1) != 0 {
|
||||
log::warn!("Illegal opcode encountered in engine25519");
|
||||
return true;
|
||||
panic!("Illegal opcode encountered in engine25519");
|
||||
}
|
||||
// if the job length isn't what we had set it to, conclude that the
|
||||
// microcode engine went through a suspend/resume cycle
|
||||
|
|
|
|||
Loading…
Reference in a new issue