mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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)?;
|
.map_err(|_| Ctap2StatusCode::CTAP2_ERR_PIN_INVALID)?;
|
||||||
|
|
||||||
if !bool::from(pin_hash.ct_eq(&pin_hash_dec)) {
|
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)
|
self.get_mut_pin_protocol(pin_uv_auth_protocol)
|
||||||
.regenerate(env.rng());
|
.regenerate(env.rng());
|
||||||
if storage::pin_retries(env)? == 0 {
|
if storage::pin_retries(env)? == 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue