mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 06:12:43 +01:00
sys/crypto: update documentation
This commit is contained in:
parent
f6c4e269b1
commit
08162f72b6
@ -15,18 +15,18 @@
|
||||
*
|
||||
* @section ciphers Ciphers
|
||||
*
|
||||
* Riot supports the following block ciphers:
|
||||
* RIOT supports the following block ciphers:
|
||||
* * AES-128
|
||||
* * 3DES (deprecated)
|
||||
* * NULL
|
||||
*
|
||||
* You can use them directly by adding "crypto" to your USEMODULE-List.
|
||||
* You can use them directly by adding `crypto_aes` or `crypto_3des` to your
|
||||
* USEMODULE-List.
|
||||
* While you can use the ciphers functions directly, you should resort to
|
||||
* the generic API for block ciphers whenever possible.
|
||||
*
|
||||
* Additionally you need to set a CFLAG for each cipher you want to use in your Makefile:
|
||||
* * AES-128: CFLAGS += -DCRYPTO_AES
|
||||
* Setting the CFLAGS initializes a sufficient large buffer size of the cipher_context_t,
|
||||
* used by the ciphers for en-/de-cryption operations.
|
||||
* Depending on the selected block ciphers, a sufficient large buffer size of
|
||||
* the cipher_context_t is used for en-/de-cryption operations.
|
||||
*
|
||||
* Example:
|
||||
* @code
|
||||
|
Loading…
Reference in New Issue
Block a user