mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/crypto: Remove leftover code related to deprecated 3DES block cipher
This commit is contained in:
parent
427d2bd06e
commit
b1a2d4787d
@ -20,7 +20,6 @@ PSEUDOMODULES += core_%
|
||||
PSEUDOMODULES += cortexm_fpu
|
||||
PSEUDOMODULES += cortexm_svc
|
||||
PSEUDOMODULES += cpu_check_address
|
||||
PSEUDOMODULES += crypto_% # crypto_aes or crypto_3des
|
||||
PSEUDOMODULES += dbgpin
|
||||
PSEUDOMODULES += devfs_%
|
||||
PSEUDOMODULES += dhcpv6_%
|
||||
|
@ -44,7 +44,6 @@ ifneq (,$(filter openwsn_coap,$(USEMODULE)))
|
||||
endif
|
||||
|
||||
ifneq (,$(filter openwsn_crypto,$(USEMODULE)))
|
||||
USEMODULE += crypto_3des
|
||||
USEMODULE += cipher_modes
|
||||
endif
|
||||
|
||||
|
@ -23,10 +23,6 @@ config CRYPTO_AES
|
||||
bool "AES"
|
||||
select MODULE_CRYPTO
|
||||
|
||||
config MODULE_CRYPTO_3DES
|
||||
bool "3DES (deprecated)"
|
||||
select MODULE_CRYPTO
|
||||
|
||||
endchoice
|
||||
|
||||
menu "Crypto AES options"
|
||||
|
@ -50,13 +50,10 @@ extern "C" {
|
||||
* Context sizes needed for the different ciphers.
|
||||
* Always order by number of bytes descending!!! <br><br>
|
||||
*
|
||||
* threedes needs 24 bytes <br>
|
||||
* aes needs CIPHERS_MAX_KEY_SIZE bytes <br>
|
||||
*/
|
||||
#if defined(MODULE_CRYPTO_3DES)
|
||||
#define CIPHER_MAX_CONTEXT_SIZE 24
|
||||
#elif IS_USED(MODULE_CRYPTO_AES_256) || IS_USED(MODULE_CRYPTO_AES_192) || \
|
||||
IS_USED(MODULE_CRYPTO_AES_128)
|
||||
#if IS_USED(MODULE_CRYPTO_AES_256) || IS_USED(MODULE_CRYPTO_AES_192) || \
|
||||
IS_USED(MODULE_CRYPTO_AES_128)
|
||||
#define CIPHER_MAX_CONTEXT_SIZE CIPHERS_MAX_KEY_SIZE
|
||||
#else
|
||||
/* 0 is not a possibility because 0-sized arrays are not allowed in ISO C */
|
||||
|
@ -2,7 +2,6 @@ include ../Makefile.tests_common
|
||||
|
||||
USEMODULE += embunit
|
||||
|
||||
USEMODULE += crypto_3des
|
||||
USEMODULE += cipher_modes
|
||||
USEMODULE += crypto_aes_128
|
||||
USEMODULE += crypto_aes_192
|
||||
|
Loading…
Reference in New Issue
Block a user