fix code style and comment issues

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-02-24 11:18:16 +08:00
parent 947bf969e0
commit ba1e78f1c2
2 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ int mbedtls_aesce_has_support(void)
return (auxval & (HWCAP_ASIMD | HWCAP_AES)) == return (auxval & (HWCAP_ASIMD | HWCAP_AES)) ==
(HWCAP_ASIMD | HWCAP_AES); (HWCAP_ASIMD | HWCAP_AES);
#else #else
/* Suppose aes instructions are supported. */ /* Assume AES instructions are supported. */
return 1; return 1;
#endif #endif
} }
@ -143,7 +143,6 @@ int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx,
return 0; return 0;
} }
/* /*
* Compute decryption round keys from encryption round keys * Compute decryption round keys from encryption round keys
*/ */
@ -244,8 +243,10 @@ int mbedtls_aesce_setkey_enc(unsigned char *rk,
case 128: case 128:
case 192: case 192:
case 256: case 256:
aesce_setkey_enc(rk, key, bits); break; aesce_setkey_enc(rk, key, bits);
default: return MBEDTLS_ERR_AES_INVALID_KEY_LENGTH; break;
default:
return MBEDTLS_ERR_AES_INVALID_KEY_LENGTH;
} }
return 0; return 0;

View File

@ -64,7 +64,6 @@ int mbedtls_aesce_crypt_ecb(mbedtls_aes_context *ctx,
const unsigned char input[16], const unsigned char input[16],
unsigned char output[16]); unsigned char output[16]);
/** /**
* \brief Internal round key inversion. This function computes * \brief Internal round key inversion. This function computes
* decryption round keys from the encryption round keys. * decryption round keys from the encryption round keys.