20 Commits

Author SHA1 Message Date
Pol Henarejos
f009dc267c Adding --vid/--pid parameters.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-26 15:37:43 +02:00
Pol Henarejos
a79296b423 Added LED blinking methods.
It has three blink patterns depending on the state:
- Unmounted
- Mounted
- Processing

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 13:55:03 +02:00
Pol Henarejos
80b03d4e8e Removed unused libraries.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 13:28:27 +02:00
Pol Henarejos
55591fd55b Added version 1.0 to USB device version.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 13:17:29 +02:00
Pol Henarejos
bb57b035fa Add analyzer script to produce figures of random bytes distribution.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 13:13:34 +02:00
Pol Henarejos
b10999d52f Small enhancement: it is not necessary to output two different bits.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 00:04:16 +02:00
Pol Henarejos
23604e8549 Setting USB 2.0
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 00:03:39 +02:00
Pol Henarejos
b175a1bef3 Added --size to output a fixed number of bytes.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 00:03:20 +02:00
Pol Henarejos
d95f2157d1 Added --endless mode to perform rngtests.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-19 14:42:55 +02:00
Pol Henarejos
4a54c5267d Adding the same RNG provided in pico-hsm (https://github.com/polhenarejos/pico-hsm).
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-19 14:42:28 +02:00
Pol Henarejos
c81b642ec1 macOS fix.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-19 14:41:33 +02:00
Mickey Malone
94699bfa10 Added LICENSE.md, updated README.md, fixed test tool, and organized driver code. 2021-02-14 12:29:00 -06:00
Mickey Malone
15316f2a51 More comments 2021-02-13 09:58:22 -06:00
Mickey Malone
edc12a7988 Updated with kernel thread to add randmoness 2021-02-13 09:05:10 -06:00
Mickey Malone
5571c8809c Tried using srand with rand to achieve more randomness. sudo cat /dev/pico_rng | rngtest -c 1000 still says that it is not even close to being good enough. Although, if we feed this data into the kernel with the other data sources it should be FIPS 140-2 compliant. By itself it is not. 2021-02-12 07:34:15 -06:00
Mickey Malone
55de2de8c7 Updated firware to contain only 1 endpoint. Created a global data buffer to hold the ADC EP1 IN data. This increased performance from 7.5 KBps to 150+ KBps. 2021-02-10 07:26:40 -06:00
Mickey Malone
b1eb887656 Work in progress, updated test tool to only read and prototyped firmware to continuously write to the TX buffer. Firmware still needs work, this was only done to understand how the pico usb core works. 2021-02-09 07:05:45 -06:00
Mickey Malone
c8e1023366 fix buffer overflow errors 2021-02-07 14:38:32 -06:00
Mickey Malone
8cdffc8d4c Updated firmware and test tool with with simple random number generator code 2021-02-07 11:01:42 -06:00
Mickey Malone
c64e6d5cc7 Initial commit 2021-02-06 08:35:38 -06:00