mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user