1
0
mirror of synced 2026-01-17 08:32:53 +00:00

60 Commits

Author SHA1 Message Date
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
Romain Dolbeau
b7244a4060 unify LED register with others 2020-12-19 05:59:07 -05:00
Romain Dolbeau
d1aa7748ea new prom 2020-12-18 19:55:22 +01:00
Romain Dolbeau
fe5f869db0 new prom 2020-12-18 13:50:08 -05:00
Romain Dolbeau
d5a5041562 larger DMA burst (Burst16 disabled, as it doesn't work on the SS20, presumably hitting the limit of the 'up-burst-sizes' attribute https://mail-index.netbsd.org/port-sparc/2020/12/18/msg002291.html) 2020-12-18 12:47:33 -05:00
Romain Dolbeau
75d40d76c1 add soe rigidity 2020-12-18 16:55:44 +01:00
Romain Dolbeau
62198d5494 12 bits of blocks in GCM DMA 2020-12-18 10:15:05 -05:00
Romain Dolbeau
6d4235c794 only alloc/map/load once per write() 2020-12-18 09:38:09 -05:00
Romain Dolbeau
9a5892be71 disable tracing 2020-12-18 09:25:17 -05:00
Romain Dolbeau
92c7751290 basic DMA support 2020-12-18 07:28:30 -05:00
Romain Dolbeau
10447bb7ec master mode: 1 cycle delay between receiving ACK and reading data... 2020-12-18 07:13:34 -05:00
Romain Dolbeau
7cbd2d68a6 ultra-preliminary support for a bus master DMA) 2020-12-17 07:18:13 -05:00
Romain Dolbeau
1bec4569ec add some extra registers for potential DMA 2020-12-16 09:37:54 -05:00
Romain Dolbeau
eb473454ce Improve reset (?), add IOBUF on some signals that are INOUT when including 'master' mode (but not yet Extended Transfer for which 'master' is a pretty much a prerequisite) 2020-12-16 09:10:18 -05:00
Romain Dolbeau
d1e36d05da more comments 2020-12-16 05:22:50 -05:00
Romain Dolbeau
d696ae0209 signal comment 2020-12-16 05:17:30 -05:00
Romain Dolbeau
04284d7f6f change ROM 'LEDs show that the board has been probed' 2020-12-16 05:03:14 -05:00
Romain Dolbeau
71b1995dea cleanup 2020-12-16 04:55:32 -05:00
Romain Dolbeau
3738909f37 LEDs show that the board has been probed 2020-12-16 10:15:37 +01:00
Romain Dolbeau
0d2fce0146 disable COUNTER25 heartbeat, remove superfluous state in the FSM (detecting ACK is handled by a variable instead) 2020-12-15 06:23:14 -05:00
Romain Dolbeau
b39f32afb7 finish rename 2020-12-14 13:30:32 +01:00
Romain Dolbeau
f8e6de242b fix names, add new picture 2020-12-14 13:29:00 +01:00
Romain Dolbeau
04a01f564c Update README.md 2020-12-14 12:57:00 +01:00
Romain Dolbeau
0d2f75c7a6 Add write() support for I, much faster than going through ioctl 16 bytes at a time... 2020-12-13 18:17:59 +01:00