RetroArch
Public Attributes | List of all members
mbedtls_pk_info_t Struct Reference

#include <pk_internal.h>

Collaboration diagram for mbedtls_pk_info_t:
[legend]

Public Attributes

mbedtls_pk_type_t type
 
const char * name
 
size_t(* get_bitlen )(const void *)
 
int(* can_do )(mbedtls_pk_type_t type)
 
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)
 
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)
 
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)
 
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)
 
int(* check_pair_func )(const void *pub, const void *prv)
 
void *(* ctx_alloc_func )(void)
 
void(* ctx_free_func )(void *ctx)
 
void(* debug_func )(const void *ctx, mbedtls_pk_debug_item *items)
 

Member Data Documentation

◆ can_do

int(* mbedtls_pk_info_t::can_do) (mbedtls_pk_type_t type)

Tell if the context implements this type (e.g. ECKEY can do ECDSA)

◆ check_pair_func

int(* mbedtls_pk_info_t::check_pair_func) (const void *pub, const void *prv)

Check public-private key pair

◆ ctx_alloc_func

void*(* mbedtls_pk_info_t::ctx_alloc_func) (void)

Allocate a new context

◆ ctx_free_func

void(* mbedtls_pk_info_t::ctx_free_func) (void *ctx)

Free the given context

◆ debug_func

void(* mbedtls_pk_info_t::debug_func) (const void *ctx, mbedtls_pk_debug_item *items)

Interface with the debug module

◆ decrypt_func

int(* mbedtls_pk_info_t::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

◆ encrypt_func

int(* mbedtls_pk_info_t::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

◆ get_bitlen

size_t(* mbedtls_pk_info_t::get_bitlen) (const void *)

Get key size in bits

◆ name

const char* mbedtls_pk_info_t::name

Type name

◆ sign_func

int(* mbedtls_pk_info_t::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

◆ type

mbedtls_pk_type_t mbedtls_pk_info_t::type

Public key type

◆ verify_func

int(* mbedtls_pk_info_t::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


The documentation for this struct was generated from the following file: