diff options
Diffstat (limited to 'crypto/Makefile')
| -rw-r--r-- | crypto/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/Makefile b/crypto/Makefile index 80019ba8da3a..989c510da8cc 100644 --- a/crypto/Makefile +++ b/crypto/Makefile | |||
| @@ -2,8 +2,13 @@ | |||
| 2 | # Cryptographic API | 2 | # Cryptographic API |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | # memneq MUST be built with -Os or -O0 to prevent early-return optimizations | ||
| 6 | # that will defeat memneq's actual purpose to prevent timing attacks. | ||
| 7 | CFLAGS_REMOVE_memneq.o := -O1 -O2 -O3 | ||
| 8 | CFLAGS_memneq.o := -Os | ||
| 9 | |||
| 5 | obj-$(CONFIG_CRYPTO) += crypto.o | 10 | obj-$(CONFIG_CRYPTO) += crypto.o |
| 6 | crypto-y := api.o cipher.o compress.o | 11 | crypto-y := api.o cipher.o compress.o memneq.o |
| 7 | 12 | ||
| 8 | obj-$(CONFIG_CRYPTO_WORKQUEUE) += crypto_wq.o | 13 | obj-$(CONFIG_CRYPTO_WORKQUEUE) += crypto_wq.o |
| 9 | 14 | ||
| @@ -104,3 +109,5 @@ obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o | |||
| 104 | obj-$(CONFIG_XOR_BLOCKS) += xor.o | 109 | obj-$(CONFIG_XOR_BLOCKS) += xor.o |
| 105 | obj-$(CONFIG_ASYNC_CORE) += async_tx/ | 110 | obj-$(CONFIG_ASYNC_CORE) += async_tx/ |
| 106 | obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/ | 111 | obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/ |
| 112 | obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o | ||
| 113 | obj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o | ||
