From 0d0de9215604b3d6cb55f172675aeea00eb7a5d3 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 30 Dec 2013 15:29:04 +0100 Subject: [PATCH] Only specify done label in aes.c when AES-NI is possible --- library/aes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/aes.c b/library/aes.c index 0286a7fbf1..69da3f681d 100644 --- a/library/aes.c +++ b/library/aes.c @@ -628,7 +628,9 @@ int aes_setkey_dec( aes_context *ctx, const unsigned char *key, unsigned int key *RK++ = *SK++; *RK++ = *SK++; +#if defined(POLARSSL_AESNI_C) && defined(POLARSSL_HAVE_X86_64) done: +#endif memset( &cty, 0, sizeof( aes_context ) ); return( 0 );