From 1ec220b002ada70e852b72577339788573675849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr> Date: Mon, 10 Mar 2014 11:20:17 +0100 Subject: [PATCH] Add missing #ifdefs in aes.h --- include/polarssl/aes.h | 4 ++++ library/aes.c | 1 + 2 files changed, 5 insertions(+) diff --git a/include/polarssl/aes.h b/include/polarssl/aes.h index 7399995f28..ffba7bf2e7 100644 --- a/include/polarssl/aes.h +++ b/include/polarssl/aes.h @@ -129,6 +129,7 @@ int aes_crypt_cbc( aes_context *ctx, unsigned char *output ); #endif /* POLARSSL_CIPHER_MODE_CBC */ +#if defined(POLARSSL_CIPHER_MODE_CFB) /** * \brief AES-CFB128 buffer encryption/decryption. * @@ -176,7 +177,9 @@ int aes_crypt_cfb8( aes_context *ctx, unsigned char iv[16], const unsigned char *input, unsigned char *output ); +#endif /*POLARSSL_CIPHER_MODE_CFB */ +#if defined(POLARSSL_CIPHER_MODE_CTR) /** * \brief AES-CTR buffer encryption/decryption * @@ -206,6 +209,7 @@ int aes_crypt_ctr( aes_context *ctx, unsigned char stream_block[16], const unsigned char *input, unsigned char *output ); +#endif /* POLARSSL_CIPHER_MODE_CTR */ #ifdef __cplusplus } diff --git a/library/aes.c b/library/aes.c index f516fba67b..fb211fe3c2 100644 --- a/library/aes.c +++ b/library/aes.c @@ -982,6 +982,7 @@ int aes_crypt_ctr( aes_context *ctx, return( 0 ); } #endif /* POLARSSL_CIPHER_MODE_CTR */ + #endif /* !POLARSSL_AES_ALT */ #if defined(POLARSSL_SELF_TEST)