[riot-notifications] [RIOT-OS/RIOT] drivers/at86rf2xx; spi security module (AES) (#14113)

fabian18 notifications at github.com
Thu May 21 19:07:26 CEST 2020

The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.

### Contribution description
The at86rf2xx IEEE 802.15.4 transceivers are capable to perform `AES` in hardware and support block cipher modes `ECB` and `CBC`.

This PR adds a `pseudomodule` in the `at86rf2xx` driver. You will be able to perform hardware encryption and decryption of blocks of data using `ECB` and `CBC` block ciphers. Nothing is changed from the actual driver.

Only `SPI` transceivers are supported, for now. Although for MCU integrated transceivers `atmega128rfa1` and `atmega256rfr2` it is even simpler and could be added later.
The SPI security module supports `fast SPI`, which means that you will read output block `i`, if you write input block `i + 1` to the SPI bus.

Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes

### Testing procedure
I provided a test in `tests/driver_at86rf2xx_aes/`.
Test vectors are taken from: [RFC3602](https://tools.ietf.org/html/rfc3602)
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output

### Issues/PRs references

Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * drivers/at86rf2xx: SPI AES security module
  * tests/driver_at86rf2xx_aes: Test for at86rf2xx AES security module

-- File Changes --

    M drivers/at86rf2xx/Makefile (6)
    A drivers/at86rf2xx/aes_spi.c (432)
    A drivers/at86rf2xx/include/at86rf2xx_aes.h (259)
    M makefiles/pseudomodules.inc.mk (1)
    A tests/driver_at86rf2xx_aes/Makefile (23)
    A tests/driver_at86rf2xx_aes/main.c (230)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200521/0a66f71f/attachment.htm>

More information about the notifications mailing list