Skip to contentSkip to conversation

hwrng: alea - Add support for Araneus Alea I USB RNG

PATCH In review Bob Ham 2 participants 3 messages Jun 2, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Bob Ham

author
#0 lore raw

PATCH 1/1 hwrng: alea - Add support for Araneus Alea I USB RNG

Adds support for the Araneus Alea I USB hardware Random Number Generator. This RNG creates entropy at a high rate, about 100kb/s.

---

Just a note about the name of the module, I haven't append "-rng" to the name, like every other module in hw_random, because those modules contain drivers for the RNG part of some more complex device. By contrast, the Alea is solely an RNG so adding "-rng" to the name seems redundant.

 drivers/char/hw_random/Kconfig  |  13 ++
 drivers/char/hw_random/Makefile |   1 +
 drivers/char/hw_random/alea.c   | 370 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 384 insertions(+)
 create mode 100644 drivers/char/hw_random/alea.c
drivers/char/hw_random/Kconfig +13 -0
index ac51149..b3f5a89 100644
@@ -396,6 +396,19 @@ config HW_RANDOM_PIC32
 
 	  If unsure, say Y.
 
+config HW_RANDOM_ALEA
+	tristate "Araneus Alea I USB Random Number Generator support"
+	depends on HW_RANDOM && USB
+	default n
+	---help---
+	  This driver provides kernel-side support for the Araneus
+	  Alea I USB hardware Random Number Generator.
+
+	  To compile this driver as a module, choose M here. the
+	  module will be called alea.
+
+	  If unsure, say N.
+
 endif # HW_RANDOM
 
 config UML_RANDOM
drivers/char/hw_random/Makefile +1 -0
index 63022b4..3709906 100644
@@ -34,3 +34,4 @@ obj-$(CONFIG_HW_RANDOM_ST) += st-rng.o
 obj-$(CONFIG_HW_RANDOM_XGENE) += xgene-rng.o
 obj-$(CONFIG_HW_RANDOM_STM32) += stm32-rng.o
 obj-$(CONFIG_HW_RANDOM_PIC32) += pic32-rng.o
+obj-$(CONFIG_HW_RANDOM_ALEA) += alea.o
drivers/char/hw_random/alea.c new file +370 -0

370 lines not on this page · raw message

Signature · 1 line
2.1.4
#2 lore raw
In reply to a message not in the archive
Quoted 7 lines · Bob Ham

Adds support for the Araneus Alea I USB hardware Random Number Generator. This RNG creates entropy at a high rate, about 100kb/s.

---

+++ b/drivers/char/hw_random/alea.c

Why didn't you just add the device ID to chaoskey.c? (Because that one is hidden in drivers/usb/misc? ;-)

Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#3 lore raw
Quoted 11 lines · Clemens Ladisch
Quoted 7 lines · Bob Ham

Adds support for the Araneus Alea I USB hardware Random Number Generator. This RNG creates entropy at a high rate, about 100kb/s.

---

+++ b/drivers/char/hw_random/alea.c

Why didn't you just add the device ID to chaoskey.c? (Because that one is hidden in drivers/usb/misc? ;-)

Argh! Because that one is hidden in drivers/usb/misc! Pfft :-)

Thanks.

Signature · 3 lines
Bob Ham <[email protected]>
Software Engineer
Collabora
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Open First
Collabora is hiring!
Please check out our latest opportunities here:
http://bit.ly/Collabora-Careers
<<<<<<<<