mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add work-around to keep ct_eq from being optimized out
See #416 for details
This commit is contained in:
parent
bdf70ab0e4
commit
43b0beecd4
1 changed files with 2 additions and 0 deletions
|
|
@ -175,6 +175,8 @@ impl ClientPin {
|
|||
.map_err(|_| Ctap2StatusCode::CTAP2_ERR_PIN_INVALID)?;
|
||||
|
||||
if !bool::from(pin_hash.ct_eq(&pin_hash_dec)) {
|
||||
// this lines ensures that the equality check above works in Rust v1.72.
|
||||
// log::trace!("ct_eq: {:?}", bool::from(pin_hash.ct_eq(&pin_hash_dec)));
|
||||
self.get_mut_pin_protocol(pin_uv_auth_protocol)
|
||||
.regenerate(env.rng());
|
||||
if storage::pin_retries(env)? == 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue