X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=crypto%2FMakefile;h=e0b7cf4e18b689a8c8a61a985c1fca06738e7412;hb=4a2f8a5c16b0828bf3ec89b4ce290bda5a0547de;hp=80019ba8da3a2113ce8a48bf924bba9ca7d96e50;hpb=fafd883f671dfc1c2f62009179920f27abc784a1;p=karo-tx-linux.git diff --git a/crypto/Makefile b/crypto/Makefile index 80019ba8da3a..e0b7cf4e18b6 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -2,8 +2,13 @@ # Cryptographic API # +# memneq MUST be built with -Os or -O0 to prevent early-return optimizations +# that will defeat memneq's actual purpose to prevent timing attacks. +CFLAGS_REMOVE_memneq.o := -O1 -O2 -O3 +CFLAGS_memneq.o := -Os + obj-$(CONFIG_CRYPTO) += crypto.o -crypto-y := api.o cipher.o compress.o +crypto-y := api.o cipher.o compress.o memneq.o obj-$(CONFIG_CRYPTO_WORKQUEUE) += crypto_wq.o @@ -104,3 +109,4 @@ obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o obj-$(CONFIG_XOR_BLOCKS) += xor.o obj-$(CONFIG_ASYNC_CORE) += async_tx/ obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/ +obj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o