Fix style issues

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
Ben Taylor
2025-12-09 08:22:42 +00:00
parent 2481daa309
commit f9b95cedaa
2 changed files with 3 additions and 3 deletions

View File

@@ -319,7 +319,7 @@ int mbedtls_x509_dn_gets(char *buf, size_t size, const mbedtls_x509_name *dn);
/**
* \brief Convert the pk_key_type to a string.
*
* \param[in] pk A mbedtls_pk_context struct containing the pk_key_type to
* \param[in] pk A mbedtls_pk_context struct containing the pk_key_type to
convert
* \return A pointer to a string containing the pk_key_type.
*/

View File

@@ -130,9 +130,9 @@ const char *pk_key_type_to_string(const mbedtls_pk_context *pk)
psa_key_type_t key_type;
key_type = mbedtls_pk_get_key_type(pk);
if(PSA_KEY_TYPE_IS_RSA(key_type)){
if (PSA_KEY_TYPE_IS_RSA(key_type)) {
return "RSA";
} else if(PSA_KEY_TYPE_IS_ECC(key_type)){
} else if (PSA_KEY_TYPE_IS_ECC(key_type)) {
return "EC";
} else {
return "NONE";