From dae70938751cc4b14449e5f4be0058a0cd7d2a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 24 Oct 2013 15:06:33 +0200 Subject: [PATCH] gcm_selftest depends on AES --- library/gcm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/gcm.c b/library/gcm.c index 04e9d5b56..a9e18c89d 100644 --- a/library/gcm.c +++ b/library/gcm.c @@ -412,12 +412,12 @@ void gcm_free( gcm_context *ctx ) memset( ctx, 0, sizeof( gcm_context ) ); } -#if defined(POLARSSL_SELF_TEST) +#if defined(POLARSSL_SELF_TEST) && defined(POLARSSL_AES_C) #include /* - * GCM test vectors from: + * AES-GCM test vectors from: * * http://csrc.nist.gov/groups/STM/cavp/documents/mac/gcmtestvectors.zip */ @@ -850,6 +850,6 @@ int gcm_self_test( int verbose ) -#endif +#endif /* POLARSSL_SELF_TEST && POLARSSL_AES_C */ #endif