[riot-notifications] [RIOT-OS/RIOT] sys/{crypto, hashes, random}: add modules to Kconfig (#15817)

Leandro Lanzieri notifications at github.com
Wed Jan 20 14:23:20 CET 2021


### Contribution description
This PR models the modules related to crypto, hashes and random in Kconfig. This is needed to continue with the modelling of high-level drivers of radios and networking modules.

**Question:** as the implementation of the crypto block cipher API can be selected, and of course those options are mutually exclusive, I've modelled that as a `choice` (see `sys/crypto/Kconfig`). It has the downside that choice options can't be `select`ed or `imply`ed, which you will see for example in `MODULE_PRNG_FORTUNA`. Should we instead model the implementations as independent symbols and display/through and error when both are active?

### Testing procedure
- Check that the dependencies are correctly modelled
- Check that the new symbols are only visible and usable when `TEST_KCONFIG=1`
- Check that the correspondent applications for the modelled drivers were added to the CI's checks
- Green CI

### Issues/PRs references
None

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/15817

-- Commit Summary --

  * sys/crypto: add modules to Kconfig
  * sys/hashes: add module to Kconfig
  * sys/luid: add module to Kconfig
  * sys/random: add modules to Kconfig
  * tests: add crypto and prng kconfig configurations

-- File Changes --

    M .murdock (3)
    M sys/Kconfig (4)
    A sys/crypto/Kconfig (47)
    A sys/crypto/modes/Kconfig (12)
    A sys/hashes/Kconfig (11)
    A sys/luid/Kconfig (11)
    A sys/random/Kconfig (82)
    A sys/random/fortuna/Kconfig (13)
    A sys/random/tinymt32/Kconfig (12)
    A tests/prng_sha1prng/app.config.test (5)
    A tests/prng_sha256prng/app.config.test (5)
    A tests/sys_crypto/app.config.test (8)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15817.patch
https://github.com/RIOT-OS/RIOT/pull/15817.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15817
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210120/0d17a778/attachment.htm>


More information about the notifications mailing list