X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fe_aes.c;h=cfa65b8e33f1388196bb62f5f74f9fc160b4edb1;hp=ae399928c11e0caccc7accecd19e7dd717f8f572;hb=c01a3c6df038d4cbec87ae658c25b3730c5af88c;hpb=e0a675e211302257256ed80ea1edeff329c9b9e9 diff --git a/crypto/evp/e_aes.c b/crypto/evp/e_aes.c index ae399928c1..cfa65b8e33 100644 --- a/crypto/evp/e_aes.c +++ b/crypto/evp/e_aes.c @@ -1027,7 +1027,7 @@ static int aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, mode = EVP_CIPHER_CTX_mode(ctx); if ((mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE) - && !enc) + && !enc) { #ifdef HWAES_CAPABLE if (HWAES_CAPABLE) { ret = HWAES_set_decrypt_key(key, @@ -1066,6 +1066,7 @@ static int aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, dat->block = (block128_f) AES_decrypt; dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? (cbc128_f) AES_cbc_encrypt : NULL; + } } else #ifdef HWAES_CAPABLE if (HWAES_CAPABLE) {