mbedtls_pk_can_do() function
Tell if a context can do the operation given by type
Arguments
ctx
The context to query. It must have been initialized.
Return value
1 if the context can do operations on the given type. 0 if the context cannot do the operations on the given type. This is always the case for a context that has been initialized but not set up, or that has been cleared with mbedtls_pk_free().