1
0
mirror of synced 2026-01-19 01:07:31 +00:00

83 Commits

Author SHA1 Message Date
Romain Dolbeau
b6534c2615 FAT now mount RO, to be tested more thoroughly 2021-03-21 11:12:30 -04:00
Romain Dolbeau
2c8c294090 update status 2021-03-16 13:50:53 -04:00
Romain Dolbeau
3335f1991a save current status; can read label but not yet mount a partition... 2021-03-16 04:47:42 -04:00
Romain Dolbeau
4b2f974e12 Userland SW bug :-(, seem to work now, disabling some debug stuuf 2021-02-28 03:51:05 -05:00
Romain Dolbeau
aa8f136c04 error msg on timeout 2021-02-28 03:50:11 -05:00
Romain Dolbeau
cebda9e613 HW post-increment of counter in AES for GCM 2021-01-24 06:47:05 -05:00
Romain Dolbeau
22bcceb3a6 screenshot of prom view 2021-01-24 05:07:40 -05:00
Romain Dolbeau
5feba64038 byte-reverse in word for GCM 2021-01-23 10:14:15 -05:00
Romain Dolbeau
60c5f7a767 aes256 ioctl 2021-01-23 09:15:08 -05:00
Romain Dolbeau
64ddf0f1c3 status 2021-01-23 12:01:34 +01:00
Romain Dolbeau
5986a8e30b nothing doing, SPI-mode SD won't work reliably :-( 2021-01-17 08:16:25 -05:00
Romain Dolbeau
119862f57f switch to different sdcard controller, still not working 2021-01-16 03:17:47 -05:00
Romain Dolbeau
1dbdf68b8c parametrize timeout max 2021-01-13 04:47:10 -05:00
Romain Dolbeau
f5c79291dd fix pullup 2021-01-13 04:46:45 -05:00
Romain Dolbeau
1cb38e9036 oups, typo 2021-01-12 07:10:34 -05:00
Romain Dolbeau
1bebc85b66 commit attempt at writing to sd-card, which has broken reading ?\!? 2021-01-11 09:35:56 -05:00
Romain Dolbeau
ecc442995f enable rst on sdcard fifo 2021-01-11 03:15:58 -05:00
Romain Dolbeau
99e613497d fix sdcard read (cleanup needed) 2021-01-10 13:13:04 -05:00
Romain Dolbeau
fa4bd69388 I|O -> IO for master 2021-01-10 17:01:04 +01:00
Romain Dolbeau
f568ad0bd3 can read some blocks from sd-card, but then something fails and the wrapper won't acknowledge the rd_addr handshake :-( 2021-01-10 10:37:16 -05:00
Romain Dolbeau
7a5479f766 add 5 MHz timecounter to rdfpga_trng 2021-01-10 03:29:28 -05:00
Romain Dolbeau
c0a8de2d3e split DMA CTRL/ADDR to one per feature (GCM_R, AES_R, AES_W) 2021-01-09 17:43:28 -05:00
Romain Dolbeau
7ab8566915 have a fisrst go at RDOL,sdcard (nor working) as a third device with the XESS sd-card controller. 2021-01-09 17:12:17 -05:00
Romain Dolbeau
d2cc1412c2 reindent 2021-01-09 16:05:10 -05:00
Romain Dolbeau
91b6e04f92 drop some old commented-out stuff 2021-01-09 16:04:08 -05:00
Romain Dolbeau
ff3e2deeb6 Add a secondary driver for a pretend-trng (it's a prng at this stage, the trng I found won't synthesize) 2021-01-09 15:57:03 -05:00
Romain Dolbeau
f3ac0898ba PROM with a second device (not yet in HW), by abusing the tokenizer a bit (OF doesn't behave as OBP2 for siblings) 2021-01-09 14:02:29 -05:00
Romain Dolbeau
007add0015 new device name, trying to figure out how to have siblings device in the PROM 2021-01-09 13:37:43 -05:00
Romain Dolbeau
cc18210794 more constants, more room for the prom 2021-01-09 12:12:10 -05:00
Romain Dolbeau
753ddd3106 DMA for cbc decrypt 2021-01-09 11:48:27 -05:00
Romain Dolbeau
20fbac086c PIO decrypt of CBC 2021-01-09 09:02:43 -05:00
Romain Dolbeau
8e27ed97e6 pipeline AES DMAs 2021-01-09 08:17:46 -05:00
Romain Dolbeau
140fb92032 split AES DMA in two control registers (for future pipelining?) 2021-01-09 07:22:13 -05:00
Romain Dolbeau
58bcaeec5a constant-ify 2021-01-09 06:35:17 -05:00
Romain Dolbeau
54a2fabe4f make AES asynchronous behind a couple FIFOs, now running at 120 MHz 2021-01-04 10:18:21 -05:00
Romain Dolbeau
ccdbf0c454 add timing constraints for master signals 2021-01-09 05:12:39 -05:00
Romain Dolbeau
92b48ce7e1 encdec signal for AS (unused) 2021-01-09 04:58:27 -05:00
Romain Dolbeau
a80fed802a fix multi-session 2021-01-03 10:13:45 -05:00
Romain Dolbeau
766b7d1e06 try multi-sessions; there could be a race condition for keys, and device is too busy leading to failure... 2021-01-03 07:59:09 -05:00
Romain Dolbeau
0e570cc871 aes-256-cbc 2021-01-03 06:44:15 -05:00
Romain Dolbeau
6e3bf32634 Move CTRLs registers around, add 4 key registers/preliminary HW support for AES256 2021-01-03 06:12:29 -05:00
Romain Dolbeau
cec1eae5e5 rename fifo to uart 2020-12-22 11:07:57 -05:00
Romain Dolbeau
2001f54c45 Move the AES block to https://github.com/secworks/aes (slower at this time, but has decrypt & 256 bits support) 2020-12-22 09:48:13 -05:00
Romain Dolbeau
2eba35f890 DMA busmaster AES-128-CBC 2020-12-22 06:24:42 -05:00
Romain Dolbeau
7992fd2b94 cleanup 2020-12-21 11:13:22 -05:00
Romain Dolbeau
55b8b7697e enable the XOR in HW for CBC mode, some R/W protect on registers 2020-12-21 09:03:57 -05:00
Romain Dolbeau
0f737c1064 switch driver code to basic aes128-cbc support, where openssl and devcrypto are in agreement 2020-12-21 06:59:44 -05:00
Romain Dolbeau
c7ecb4b128 Having a go at basic opencrypto/aes-ctr support, but it seems OpenSSL and /dev/crypto disagree on the interface :-( 2020-12-21 05:27:36 -05:00
Romain Dolbeau
8afe45ea54 Adding basic AES support (using AES block from https://github.com/mbgh/aes128-hdl) 2020-12-20 11:19:25 -05:00
Romain Dolbeau
1b25261073 Merge branch 'main' of github.com:rdolbeau/SBusFPGA into main 2020-12-19 07:21:42 -05:00