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)) ==
(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;

View file

@ -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.