refer to local version of libraries

this fixes a dangling reference to the trng generator
This commit is contained in:
bunnie 2025-11-27 17:57:03 +08:00
parent 7b00f63d74
commit e18175a425
2 changed files with 19 additions and 15 deletions

View file

@ -18,7 +18,7 @@ xous-names = { package = "xous-api-names", version = "0.9.67" }
locales = { path = "../../locales" } locales = { path = "../../locales" }
pddb = { path = "../../services/pddb" } pddb = { path = "../../services/pddb" }
modals = { path = "../../services/modals", features = ["no-gam"] } modals = { path = "../../services/modals", features = ["no-gam"] }
backup = { path = "../../apps/vault/libraries/backup" } backup = { path = "./libraries/backup", package = "backup-vault2" }
byteorder = { version = "1.4.3", default-features = false } byteorder = { version = "1.4.3", default-features = false }
arrayref = "0.3.6" arrayref = "0.3.6"
subtle = { version = "2.5.0", features = ["core_hint_black_box"] } subtle = { version = "2.5.0", features = ["core_hint_black_box"] }
@ -36,8 +36,8 @@ xous-usb-hid = { git = "https://github.com/betrusted-io/xous-usb-hid.git", branc
keystore = { path = "../../services/keystore" } keystore = { path = "../../services/keystore" }
# opensk # opensk
ctap-crypto = { path = "../../apps/vault/libraries/crypto" } ctap-crypto = { path = "./libraries/crypto", package = "ctap-crypto-vault2" }
cbor = { path = "../../apps/vault/libraries/cbor" } cbor = { path = "./libraries/cbor", package = "cbor-vault2" }
persistent_store = { path = "../../apps/vault/libraries/persistent_store" } persistent_store = { path = "../../apps/vault/libraries/persistent_store" }
ed25519-compact = { version = "1", default-features = false, optional = true } ed25519-compact = { version = "1", default-features = false, optional = true }
rand = { version = "0.8.5", optional = true } rand = { version = "0.8.5", optional = true }

View file

@ -1147,18 +1147,22 @@ impl ActionManager {
if let Some(qr_uri) = qr_data.content { if let Some(qr_uri) = qr_data.content {
// now parse the QR URL. See spec below // now parse the QR URL. See spec below
/* /*
- otpauth:// - otpauth://
- enroll TOTP token - enroll TOTP token
- overwrites if previous exists - overwrites if previous exists
- pwauth://pass/<URL>?time=2025-11-27T13:06:02+08:00 - time://2025-11-27T13:06:02+08:00
- prompts to type password if it's in the database - set RTC offset
- prompts to add new password (autogenerated) if it's not (need a new special character flow: ! @ # $ % ^ * ( ) - _ + = allowed ) - pin://<base64 PIN>
- pwauth://new/<URL>?pass=<password> - Use this as the PIN value for the token
- add a password to the password store (no 'time?' to simplify parsing of complicated passwords) - pwauth://pass/<URL>?time=2025-11-27T13:06:02+08:00
- prompt to allow, since the QR code is unauthenticated - prompts to type password if it's in the database
- time://2025-11-27T13:06:02+08:00 -> time setting - prompts to add new password (autogenerated) if it's not (need a new special character flow: ! @ # $ % ^ * ( ) - _ + = allowed )
- search://<string to search> -> search for an item in a list - pwauth://new/<URL>?pass=<password>
- search://<string to search>?time=2025-11-27T13:06:02+08:00 -> search for an item in a list & sets time - add a password to the password store (no 'time?' to simplify parsing of complicated passwords)
- prompt to allow, since the QR code is unauthenticated
- search://<string to search>
- search://<string to search>?time=2025-11-27T13:06:02+08:00
- search for a list time and/or search & set time
*/ */
if let Some((request, data)) = qr_uri.split_once("://") { if let Some((request, data)) = qr_uri.split_once("://") {
match request { match request {