mbed TLS  Version 2.4.1
SSL/TLS Library for the Embedded Space
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mbedtls_pk_info_t Struct Reference

Public key information and operations. More...

Data Fields

mbedtls_pk_type_t type
 Public key type.
 
const char * name
 Type name.
 
size_t(* get_bitlen )(const void *)
 Get key size in bits.
 
int(* can_do )(mbedtls_pk_type_t type)
 Tell if the context implements this type (e.g. More...
 
int(* verify_func )(void *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, const unsigned char *sig, size_t sig_len)
 Verify signature.
 
int(* sign_func )(void *ctx, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *sig, size_t *sig_len, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)
 Make signature.
 
int(* decrypt_func )(void *ctx, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, size_t osize, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)
 Decrypt message.
 
int(* encrypt_func )(void *ctx, const unsigned char *input, size_t ilen, unsigned char *output, size_t *olen, size_t osize, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng)
 Encrypt message.
 
int(* check_pair_func )(const void *pub, const void *prv)
 Check public-private key pair.
 
void *(* ctx_alloc_func )(void)
 Allocate a new context.
 
void(* ctx_free_func )(void *ctx)
 Free the given context.
 
void(* debug_func )(const void *ctx, mbedtls_pk_debug_item *items)
 Interface with the debug module.
 

Description

Public key information and operations.

Field Documentation

int(* can_do)(mbedtls_pk_type_t type)

Tell if the context implements this type (e.g.

ECKEY can do ECDSA)