mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Add name and get_size() members in PK
This commit is contained in:
parent
835eb59c6a
commit
f8c948a674
3 changed files with 58 additions and 14 deletions
|
|
@ -89,6 +89,12 @@ typedef struct
|
|||
/** Public key type */
|
||||
pk_type_t type;
|
||||
|
||||
/** Type name */
|
||||
const char *name;
|
||||
|
||||
/** Get key size in bits */
|
||||
size_t (*get_size)( void * );
|
||||
|
||||
/** Tell if the context implements this type (eg ECKEY can do ECDSA) */
|
||||
int (*can_do)( pk_type_t type );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue