38 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
4137861a21 Update README.md
Added SP800-90B results.
2022-08-22 14:08:58 +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
ad4119a653 Update README.md 2022-08-22 13:29:51 +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>
v1.0
2022-08-22 13:17:29 +02:00
Pol Henarejos
79d8f7e64a Update README.md
Added figures.
2022-08-22 13:14:35 +02:00
Pol Henarejos
8b4eb56389 Added readme analysis.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 13:13:49 +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
7e1fd186dc Adding driver for build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2022-08-22 00:04:30 +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
e2088c6c53 Update README.md 2021-02-14 18:19:56 -06:00
Mickey Malone
5852867a80 Correct license text 2021-02-14 14:34:18 -06:00
Mickey Malone
84fd2e55fc Update logging statements and added gif with FIPS 140-2 results using random bits from the Pico. 2021-02-14 14:31:43 -06:00
Mickey Malone
cdce85171f Updated README.md 2021-02-14 14:11:04 -06:00
Mickey Malone
dfed974be8 Remove Kbuild generation from driver cmake 2021-02-14 12:49:55 -06: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
142a0fcdac fix build issue 2021-02-14 10:27:21 -06:00
Mickey Malone
15316f2a51 More comments 2021-02-13 09:58:22 -06:00
Mickey Malone
53a9d6bdf3 Add comment 2021-02-13 09:42:33 -06:00
Mickey Malone
e1fa69d49e Changed back to add_hwgenerator_randomness 2021-02-13 09:40:03 -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
ce9e5deb54 Driver exposes a character device /dev/pico_rng. Updated driver to support the character device. Tested with dd and cat. I am getting better performance than with Python, no shocker there. 2021-02-12 06:55:02 -06:00
Mickey Malone
396455021a Played around with usb kernel code. Ended up with these modifications that reads random data on probe. 2021-02-10 20:23:12 -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
b4d5453fd4 Created driver shell 2021-02-06 16:34:34 -06:00
Mickey Malone
b076133178 Added linux kernel module 2021-02-06 11:59:39 -06:00
Mickey Malone
c64e6d5cc7 Initial commit 2021-02-06 08:35:38 -06:00
Mickey Malone
c77250398e Initial commit 2021-02-06 08:20:15 -06:00