Commit graph

3048 commits

Author SHA1 Message Date
bunnie
c3e0bee9dc use PIO as the system timer
other timers might work, but this is the one we can simulate
and pre-flight and know it will work.
2024-03-07 01:32:26 +08:00
bunnie
8622fbdf7a
Merge pull request #508 from betrusted-io/ring-0.17
WIP: Ring 0.17
2024-03-02 01:36:08 +08:00
bunnie
9a43db9654 remove ring-test command that was not ported to 0.17
we'll port it forward if we end up needing to get that deep
into the crate.
2024-03-02 01:21:25 +08:00
bunnie
3b6cba6174 add a "0th order" test of ring/rustls latest API 2024-02-11 17:15:49 +08:00
bunnie
a3f8ff6371 add zeroize API to AES port
this was missed on an earlier pass
2024-02-10 15:04:11 +08:00
bunnie
5fb368ae05 partial progress on porting to ring-0.17 2024-02-09 17:18:41 +08:00
David Kotval
8eb0a26d51 fix: don't break tls
Due to our patch of ring@0.16.0, we must be careful
that none of the transitive deps of the tls packages
try to use a newer ring.
2024-02-08 12:47:45 -06:00
kotval
99a3348695
Merge pull request #6 from betrusted-io/dalek_to_v4
Fix `engine ed` and pull in SHA engine fixes
2024-02-08 10:14:15 -06:00
bunnie
899dd84b5a update benchmark numbers to reflect performance impact of fixes 2024-02-08 17:42:55 +08:00
bunnie
1638ea2e04 bump x25519-dalek API to latest 2024-02-08 17:40:32 +08:00
bunnie
1079157be9 fix engine tests
engine wasn't passing because the *tests* were incorrect, due
to incorrect upgrades on the API. The tests are now to spec.
2024-02-08 17:39:34 +08:00
kotval
eab5751b51
Merge pull request #5 from kotval/dalek_to_v4
fix: use legacy compat for engine 25519 tests
2024-02-08 01:56:27 -06:00
David Kotval
f2af67519f fix: use legacy compat for engine 25519 tests 2024-02-08 01:23:02 -06:00
bunnie
e48832a139 make TRNG API test easier to run
since we're using it, might as well take it out of a comment
and turn it into a gated feature
2024-02-08 15:04:23 +08:00
bunnie
e8599f5554 CHORE: fix typo 2024-02-08 14:57:36 +08:00
bunnie
711f0eeee2 cleanup some rand dependencies that were lagging/inconsistent 2024-02-08 14:22:26 +08:00
bunnie
7c944fb4db upgrade zeroize to latest API level 2024-02-08 14:02:58 +08:00
bunnie
a68d0513e3 upgrade blowfish so we can retire the old cipher API
the pin was holding back another package
2024-02-08 13:59:26 +08:00
bunnie
1487bbe924 upgrade AES to latest API compatibility 2024-02-08 13:57:40 +08:00
bunnie
65fd32e181 update chrono pins
This is the weirdest damn thing. All the crates say 0.4.19 as
the chrono version, but the actual version in the lockfile
is 0.4.33. And there isn't an error about it?

Anyways, this update the pins to reflect what's in the lockfile.
2024-02-08 13:51:30 +08:00
bunnie
fb68eb9dd2 cleanup datetime API deprecation warnings 2024-02-08 13:46:24 +08:00
bunnie
df7c31a7df clean up warnings in dummy implementations 2024-02-08 13:10:08 +08:00
David Kotval
e619803114 fix: don't break hosted mode 2024-02-07 13:56:02 -06:00
bunnie
6de48e90f3 fix formatting problem 2024-02-08 00:49:00 +08:00
bunnie
717abf4af8 work around dependency conflict on atsma5d27
the dependency is pinned to an old version of utralib that
causes a build conflict...
2024-02-08 00:33:14 +08:00
bunnie
315d9b96d4 Merge branch 'main' into dalek_to_v4 2024-02-07 22:52:24 +08:00
bunnie
32dc547218 bump PDDB crypto API versions 2024-02-07 22:42:38 +08:00
bunnie
5636e07eb8 Upgrade Ed25519 to latest version; fix zeroize derive. 2024-02-07 22:41:57 +08:00
bunnie
9c8662ebea bump digest pin 2024-02-07 22:41:38 +08:00
bunnie
699004e7b0 bump xous pins 2024-02-06 14:49:10 +08:00
David Kotval
a70832b3ce wip: dumping deps to get curve25519 to 4.1.1 2024-02-04 14:12:36 -06:00
bunnie
053c55c254 CHORE reformat PR
I...could swear there was no merge warning when I clicked merge.

why is this failing to check now?
2024-02-01 13:47:13 +08:00
bunnie
92e501ec01 harmonize around a single xous-usb-hid spec
otherwise we get weird conflicts on builds
2024-02-01 13:41:49 +08:00
bunnie
3ed7736fa6 chore: fix trailing whitespaces
i'm not sure how this merged, the merge checks were all clean
on the previous PR...???
2024-02-01 13:16:18 +08:00
bunnie
71d38008b8
Merge pull request #494 from gsora/gsora/app-hid
services/usb-device-xous: generic USB HID framework
2024-02-01 13:11:41 +08:00
bunnie
bf15d7c803
Merge branch 'main' into refactor-sha2 2024-02-01 01:46:31 +08:00
bunnie
40423f9448 fix hosted and renode modes 2024-02-01 01:42:18 +08:00
bunnie
bf12579c55 remove engine-sha512
it has now been merged into our fork of the hashes directory...
2024-02-01 01:13:24 +08:00
bunnie
3598cff50b de-select the testing package for sha 2024-02-01 01:12:48 +08:00
bunnie
0c7be94c22 re-introduce "wait for hardware" hashes for "big hashes" 2024-02-01 00:52:21 +08:00
bunnie
75506afc25 make shellchat sha tests compatible with new API
plus note latest benchmarking results
2024-02-01 00:52:04 +08:00
bunnie
31efca3e9c add fixme notes for where the Scalar was decomposed due to hash api incompatibility 2024-01-31 04:16:05 +08:00
bunnie
4c99f6da3d patch over rootkeys issues with the new hash
- new api incantations
- KeyInit trait demotion into individual functions
- decomposition of Scalar derivations because the hasher
API changes and is no longer directly passable into Scalar
(this should probably get reverted if/when curve25519/ed25519
is bumped in API later...)
- notes about areas that should be hardware accelerated but are not
2024-01-31 04:12:54 +08:00
bunnie
9a5fac408c update pddb to use new sha api
there is one interesting thing that happens with the api
incompatibilities in that importing the KeyInit trait affects
both AES and SHA identically, so this trait now has to be imported
just at the function level instead of crate level because we don't
want it to affect both algorithms so broadly.
2024-01-31 04:11:30 +08:00
bunnie
1e8cd1edbe bump hkdf to work with newer sha api 2024-01-31 04:11:19 +08:00
bunnie
cc2c11f84c revise API on backups routine to use 0.10 2024-01-31 04:08:06 +08:00
bunnie
f7bcbbf2d0 add FIXME note so we can find this spot later 2024-01-31 04:05:33 +08:00
bunnie
370288dffa ...right, wrong hash type. no acceleration option available. 2024-01-31 04:05:03 +08:00
bunnie
ee95bc1306 specify use of sw-only hasher in bip39
the hash is tiny, hw overhead not worth it
2024-01-31 04:04:16 +08:00
bunnie
577646288a fix bip39 api changes 2024-01-31 04:02:57 +08:00