All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] crypto: hw_random - Add new Exynos RNG driver
@ 2017-03-24 14:24 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 35+ messages in thread
From: Krzysztof Kozlowski @ 2017-03-24 14:24 UTC (permalink / raw)
  To: Kukjin Kim, Javier Martinez Canillas, Matt Mackall, Herbert Xu,
	David S. Miller, linux-kernel, linux-arm-kernel,
	linux-samsung-soc, linux-crypto
  Cc: Arnd Bergmann, Olof Johansson, Krzysztof Kozlowski

Hi,

This is a follow up of my questions around exynos-rng [1].

The existing exynos-rng has many issues.  The most important one is that
it is a pseudo RNG device but uses hw_random interface which does not allow
proper seeding.

The RNG module on Exynos4 requires seeding.  On newer SoCs (like Exynos5420)
it can seed itself from a true RNG.  Converting the existing driver
to use TRNG would effectively drop support for Exynos4 and break
compatibility with existing users.

Instead I decided to convert it to crypto API.  In the future I hope
to add support for seeding from TRNG module.

Tested with app [2].

Patches are independent. I will take the defconfig changes (2/3 and 3/3)
through samsung-soc tree.

Best regards,
Krzysztof

[1] https://www.spinics.net/lists/arm-kernel/msg569641.html
[2] https://www.spinics.net/lists/arm-kernel/msg571184.html

Krzysztof Kozlowski (3):
  crypto: hw_random - Add new Exynos RNG driver
  ARM: exynos_defconfig: Enable Exynos RNG and user-space crypto API
  ARM: multi_v7_defconfig: Enable Exynos RNG and user-space crypto API

 MAINTAINERS                         |   8 +
 arch/arm/configs/exynos_defconfig   |   6 +
 arch/arm/configs/multi_v7_defconfig |   6 +
 drivers/char/hw_random/Kconfig      |  14 --
 drivers/char/hw_random/Makefile     |   1 -
 drivers/char/hw_random/exynos-rng.c | 231 ---------------------------
 drivers/crypto/Kconfig              |  15 ++
 drivers/crypto/Makefile             |   1 +
 drivers/crypto/exynos-rng.c         | 306 ++++++++++++++++++++++++++++++++++++
 9 files changed, 342 insertions(+), 246 deletions(-)
 delete mode 100644 drivers/char/hw_random/exynos-rng.c
 create mode 100644 drivers/crypto/exynos-rng.c

-- 
2.9.3

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2017-03-24 17:02 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-24 14:24 [PATCH 0/3] crypto: hw_random - Add new Exynos RNG driver Krzysztof Kozlowski
2017-03-24 14:24 ` Krzysztof Kozlowski
2017-03-24 14:24 ` [PATCH 1/3] " Krzysztof Kozlowski
2017-03-24 14:24   ` Krzysztof Kozlowski
2017-03-24 14:37   ` Stephan Müller
2017-03-24 14:37     ` Stephan Müller
2017-03-24 14:43     ` Krzysztof Kozlowski
2017-03-24 14:43       ` Krzysztof Kozlowski
2017-03-24 14:46       ` Stephan Müller
2017-03-24 14:46         ` Stephan Müller
2017-03-24 14:46         ` Stephan Müller
2017-03-24 14:51         ` Krzysztof Kozlowski
2017-03-24 14:51           ` Krzysztof Kozlowski
2017-03-24 14:55           ` Stephan Müller
2017-03-24 14:55             ` Stephan Müller
2017-03-24 14:58             ` Krzysztof Kozlowski
2017-03-24 14:58               ` Krzysztof Kozlowski
     [not found]   ` <CGME20170324152650epcas5p1fb48677d6b5ac7210d6df438a5e70ca3@epcas5p1.samsung.com>
2017-03-24 15:26     ` Bartlomiej Zolnierkiewicz
2017-03-24 15:26       ` Bartlomiej Zolnierkiewicz
2017-03-24 15:46       ` Krzysztof Kozlowski
2017-03-24 15:46         ` Krzysztof Kozlowski
     [not found]         ` <CGME20170324161128epcas1p4b9ef08e3d7e640957d30afa84aa66a16@epcas1p4.samsung.com>
2017-03-24 16:11           ` Bartlomiej Zolnierkiewicz
2017-03-24 16:11             ` Bartlomiej Zolnierkiewicz
2017-03-24 16:11             ` Bartlomiej Zolnierkiewicz
2017-03-24 16:19             ` Krzysztof Kozlowski
2017-03-24 16:19               ` Krzysztof Kozlowski
     [not found]               ` <CGME20170324164544epcas1p353b2eba5ecb6d5f7a69049c5ba9d667e@epcas1p3.samsung.com>
2017-03-24 16:45                 ` Bartlomiej Zolnierkiewicz
2017-03-24 16:45                   ` Bartlomiej Zolnierkiewicz
2017-03-24 17:01                   ` Krzysztof Kozlowski
2017-03-24 17:01                     ` Krzysztof Kozlowski
2017-03-24 17:01                     ` Krzysztof Kozlowski
2017-03-24 14:24 ` [PATCH 2/3] ARM: exynos_defconfig: Enable Exynos RNG and user-space crypto API Krzysztof Kozlowski
2017-03-24 14:24   ` Krzysztof Kozlowski
2017-03-24 14:24 ` [PATCH 3/3] ARM: multi_v7_defconfig: " Krzysztof Kozlowski
2017-03-24 14:24   ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.