Commit graph

10340 commits

Author SHA1 Message Date
bunnie
4319ac4f45
now changes when time is set
fix logic
2022-06-25 09:01:02 +08:00
bunnie
d5063d1ff0 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-06-25 00:27:01 +08:00
bunnie
b7892e0cd3 update README 2022-06-25 00:26:31 +08:00
bunnie
68db7e8c7a reduce noise from the prereqs debug loop 2022-06-25 00:23:46 +08:00
bunnie
22702cc03b add a prereqs checkpoint
this checks to make sure that the system is in a usable state
for the vault to run before allowing it to be launched.
in particular, the PDDB must be initialized, and so must the
system time.
2022-06-25 00:22:09 +08:00
bunnie
b9e1e69adb update a commment so we know not to change a particular constant 2022-06-25 00:21:46 +08:00
bunnie
c1c0729f39 add some indicator if keyboard LEDs were set by host 2022-06-24 18:58:27 +08:00
bunnie
7deb6fd4a1 add notes about how to clear test entries 2022-06-24 18:58:07 +08:00
bunnie
4771f04451 update progress while making test entries 2022-06-24 18:57:44 +08:00
bunnie
c6aecc08dc fix bug where entries don't redraw scrolling up/down to new page 2022-06-24 18:57:24 +08:00
bunnie
3c82898780 fix some minor bugs
- test entries for passwords at 100 entries. it's...pretty slow
at 300 passwords, about 8 seconds to scan/read-in the database.
once the database is read-in, sorting and viewing is fast. good
news is that heap usage is about 300k for that many entries,
no OOM crashes found. just slow.

- fix an unimplemented()! error

- strip out some debug
2022-06-24 17:23:00 +08:00
Sean Cross
66d7cfe1ca Merge branch 'main' of github.com:betrusted-io/xous-core 2022-06-24 15:55:24 +08:00
Sean Cross
3c156f6ae4 emulation: use BackingFile to make spi persistent
Use the `BackingFile` property of the SPI flash block in order to allow
SPI flash writes to persist across runs. This will write out the SPI
flash contents as data is written.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-24 15:55:05 +08:00
bunnie
847e64c46a add totp record add/edit rough draft UX flows 2022-06-24 15:53:57 +08:00
bunnie
024b9d9ce1 make it so that attempts to list empty dictionaries don't fail
this might point at a larger error of empty dictionaries not
being recorded, but this is a work-around for now...?
2022-06-24 15:53:23 +08:00
Sean Cross
210d0c7fe3 emulation: MX66UM1G45G: add BackingFile property
The `BackingFile` property can be set to a file path in order to make
flash writes persist across runs.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-24 15:39:10 +08:00
Sean Cross
406737ebf3 emulation: i2s: check in current work-in-progress
Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-24 13:54:51 +08:00
bunnie
9a5c04cc73 add a time progress bar in TOTP mode 2022-06-24 03:40:21 +08:00
bunnie
7765f3dec3 add other hash support; notch back the hmac dependencies
our engine is a version older in API rev, so notch back the
dependencies so we're all at the same rev
2022-06-24 01:46:09 +08:00
bunnie
5d8b85c0bf totp demo working 2022-06-24 01:18:37 +08:00
bunnie
57845b6fb6 clean up warnings in ctap 2022-06-24 01:18:32 +08:00
bunnie
729a6ad186 add the beginning of the TOTP functions 2022-06-24 00:31:25 +08:00
bunnie
ce461a06fe add routines to populate test entries, and use less synthetic data 2022-06-24 00:30:45 +08:00
bunnie
e998e96323 change visibility of some routines so we can access storage in the UX 2022-06-24 00:30:29 +08:00
bunnie
512f435b2a move the FIDO random secret into the FIDO_DICT
originally we stuck it in the CRED_DICT because it forces its
creation -- but there's no reason to *really* do that. We just
set the dictionary to be created if it's not existent in the later
API calls.

By moving this to FIDO_DICT instead of FIDO_CRED_DICT it makes
key access & sorting much cleaner in the UX, because you don't
have this odd key hanging out, and it also means that you can't
have an attack on the system where you try to name a key with
the name held in FIDO_CRED_DICT to try and read it out.
2022-06-24 00:28:58 +08:00
Sean Cross
08958745ba kernel: implement AdjustProcessLimit syscall
Implement the syscall to adjust a process' limit. Currently this
only supports adjusting the heap maximum and the heap size.

In order to adjust a limit, you must first present the current limit.
This can be obtained by requesting a bogus value. The current limit is
returned as part of the result.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-24 00:09:35 +08:00
Sean Cross
f20e809d8c xous: add AdjustProcessLimit syscall
This syscal will be used to adjust various process limits. Currently
it only contains the ability to adjust the heap size and maximum.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-24 00:09:34 +08:00
bunnie
5e08941950 change display order for passwords
sort by description not username
2022-06-23 04:22:11 +08:00
bunnie
ad22618c8d add some debug around deserialization errors 2022-06-23 04:17:37 +08:00
bunnie
8c986035b8 add trailing newline to serializations
the final entry can accrue cruft after it if there is no newline
2022-06-23 04:11:58 +08:00
bunnie
57f9e1a5f9 fix font setting 2022-06-23 03:01:44 +08:00
bunnie
304c865bb3 fix count on password access; make USB HID selected when vault is active 2022-06-23 02:27:05 +08:00
bunnie
e6e44d3dfb add an ensure usb connection
ensure connection will not reset the core if it's already connected,
unlike the switch version which always resets the core even if it is
connected.
2022-06-23 02:26:12 +08:00
bunnie
e2f335ec3a make missed input forwarding non-fatal 2022-06-23 02:26:02 +08:00
bunnie
09046854db add password edit/delete functions 2022-06-23 01:32:06 +08:00
bunnie
0624dee629 fix default entry population on multiple fields 2022-06-23 01:27:24 +08:00
bunnie
44b15c7262 modify text entry behavior to recover default
if the field is empty and you're not in password mode,
pressing left or right will populate the autocomplete field
2022-06-22 21:41:07 +08:00
bunnie
64a2c2d6ff bump cargo.lock 2022-06-22 21:20:50 +08:00
bunnie
9671ef65f5 add password deserialization framework and UX routines 2022-06-22 21:20:19 +08:00
nworbnhoj
549178e148 implement Shrink adaptor iterator 2022-06-22 21:30:20 +10:00
bunnie
7e65f3db66 add a breadcrumb 2022-06-22 18:16:28 +08:00
bunnie
5e450235e3 improve debug output for raise/lower; add a nonblocking relinquish 2022-06-22 18:14:00 +08:00
bunnie
ebd636d324 improve debug output on modals 2022-06-22 18:13:29 +08:00
bunnie
e33c7b9ecc add raise/lower debug info 2022-06-22 18:12:04 +08:00
bunnie
f041dfb9b4 fix warning message on nonblocking redraw 2022-06-22 18:11:23 +08:00
bunnie
f7f2868802 refactor to put blocking modals into its own thread
UX interaction via blocking modals are put into its own thread
so that the background UX can update while menus and modals are
popped up.

Still some bugs to work out to make this fully implemented,
but this is the major work fleshed out.
2022-06-22 04:52:40 +08:00
bunnie
b777714435 modify textentry behavior: default text changes
at the moment, default text will always come back if you
remove the text so there is no text in the field (for example,
you start typing, and then you decide you want to start over,
the suggested text re-appears).

this change makes it so that once you start typing, the suggested
text does not return. Furthermore, it counts the initial backspace
as a key that's hit, so you can clear the suggested text by just
hitting backspace.
2022-06-22 04:42:05 +08:00
bunnie
ad92cbe1cb add customized menu contexts per sub-app 2022-06-21 02:41:03 +08:00
bunnie
8d4cdb3284 fix indexing bugs 2022-06-21 01:14:37 +08:00
bunnie
82e9c57ed4 add dirty rectangle flags to improve drawing performance 2022-06-20 22:20:28 +08:00