diff --git a/library/aesce.c b/library/aesce.c index e47665a50c..ee0c8e12cf 100644 --- a/library/aesce.c +++ b/library/aesce.c @@ -60,7 +60,7 @@ int mbedtls_aesce_has_support(void) return (auxval & (HWCAP_ASIMD | HWCAP_AES)) == (HWCAP_ASIMD | HWCAP_AES); #else - /* Suppose aes instructions are supported. */ + /* Assume AES instructions are supported. */ return 1; #endif } @@ -143,7 +143,6 @@ int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx, return 0; } - /* * Compute decryption round keys from encryption round keys */ @@ -244,8 +243,10 @@ int mbedtls_aesce_setkey_enc(unsigned char *rk, case 128: case 192: case 256: - aesce_setkey_enc(rk, key, bits); break; - default: return MBEDTLS_ERR_AES_INVALID_KEY_LENGTH; + aesce_setkey_enc(rk, key, bits); + break; + default: + return MBEDTLS_ERR_AES_INVALID_KEY_LENGTH; } return 0; diff --git a/library/aesce.h b/library/aesce.h index 0d6d09e507..1e72e5ba46 100644 --- a/library/aesce.h +++ b/library/aesce.h @@ -64,7 +64,6 @@ int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx, const unsigned char input[16], unsigned char output[16]); - /** * \brief Internal round key inversion. This function computes * decryption round keys from the encryption round keys.