You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
keystore: reduce secure chip operations when unlocking
Every call to `keystore::unlock` is followed by `copy_seed()`. The latter
uses a secure chip operation. We can remove that by returning the seed
from unlock and re-using it.
This reduces the number of securechip operations by 1 when:
- when unlocking the device
- showing mnemonic on initialized device
- creating backu on initialized device
This is to reduce the risk of running into Optiga's throttling
security mechanism.
let expected_bip39_seed = hex::decode("2b3c63de86f0f2b13cc6a36c1ba2314fbc1b40c77ab9cb64e96ba4d5c62fc204748ca6626a9f035e7d431bce8c9210ec0bdffc2e7db873dee56c8ac2153eee9a").unwrap();
@@ -741,7 +750,7 @@ mod tests {
741
750
742
751
// Correct password. First time: unlock. After unlock, it becomes a password check.
0 commit comments