From bfa3c9a85f7e794e4cf821244bb58d6c86034efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 30 Dec 2013 13:53:58 +0100 Subject: [PATCH] Remove temporary code --- library/aes.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/library/aes.c b/library/aes.c index 331698f5d..0286a7fbf 100644 --- a/library/aes.c +++ b/library/aes.c @@ -485,11 +485,7 @@ int aes_setkey_enc( aes_context *ctx, const unsigned char *key, unsigned int key #if defined(POLARSSL_AESNI_C) && defined(POLARSSL_HAVE_X86_64) if( aesni_supports( POLARSSL_AESNI_AES ) ) - { - int ret = aesni_setkey_enc( (unsigned char *) ctx->rk, key, keysize ); - // XXX: temporary while some key size aren't handled - if( ret == 0 ) return( ret ); - } + return( aesni_setkey_enc( (unsigned char *) ctx->rk, key, keysize ) ); #endif for( i = 0; i < (keysize >> 5); i++ )