50#ifndef MBEDTLS_PK_WRAP_H
51#define MBEDTLS_PK_WRAP_H
53#if !defined(MBEDTLS_CONFIG_FILE)
56#include MBEDTLS_CONFIG_FILE
77 const unsigned char *
hash,
size_t hash_len,
78 const unsigned char *sig,
size_t sig_len );
82 const unsigned char *
hash,
size_t hash_len,
83 unsigned char *sig,
size_t *sig_len,
84 int (*f_rng)(
void *,
unsigned char *,
size_t),
87#if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_ECP_RESTARTABLE)
90 const unsigned char *
hash,
size_t hash_len,
91 const unsigned char *sig,
size_t sig_len,
96 const unsigned char *
hash,
size_t hash_len,
97 unsigned char *sig,
size_t *sig_len,
98 int (*f_rng)(
void *,
unsigned char *,
size_t),
99 void *p_rng,
void *rs_ctx );
104 unsigned char *output,
size_t *olen,
size_t osize,
105 int (*f_rng)(
void *,
unsigned char *,
size_t),
110 unsigned char *output,
size_t *olen,
size_t osize,
111 int (*f_rng)(
void *,
unsigned char *,
size_t),
118 void * (*ctx_alloc_func)(
void );
123#if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_ECP_RESTARTABLE)
125 void * (*rs_alloc_func)(
void );
128 void (*rs_free_func)(
void *rs_ctx );
135#if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
146#if defined(MBEDTLS_RSA_C)
150#if defined(MBEDTLS_ECP_C)
155#if defined(MBEDTLS_ECDSA_C)
159#if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLenum GLenum GLenum input
mbedtls_md_type_t
Supported message digests.
Public Key abstraction layer.
int(* mbedtls_pk_rsa_alt_decrypt_func)(void *ctx, int mode, size_t *olen, const unsigned char *input, unsigned char *output, size_t output_max_len)
Types for RSA-alt abstraction.
mbedtls_pk_type_t
Public key types.
size_t(* mbedtls_pk_rsa_alt_key_len_func)(void *ctx)
int(* mbedtls_pk_rsa_alt_sign_func)(void *ctx, int(*f_rng)(void *, unsigned char *, size_t), void *p_rng, int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, const unsigned char *hash, unsigned char *sig)
const mbedtls_pk_info_t mbedtls_rsa_alt_info
const mbedtls_pk_info_t mbedtls_rsa_info
const mbedtls_pk_info_t mbedtls_ecdsa_info
const mbedtls_pk_info_t mbedtls_eckeydh_info
const mbedtls_pk_info_t mbedtls_eckey_info
Item to send to the debug module.
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)
void(* ctx_free_func)(void *ctx)
void(* debug_func)(const void *ctx, mbedtls_pk_debug_item *items)
size_t(* get_bitlen)(const void *)
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(* check_pair_func)(const void *pub, const void *prv)
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(* can_do)(mbedtls_pk_type_t type)
mbedtls_pk_rsa_alt_key_len_func key_len_func
mbedtls_pk_rsa_alt_decrypt_func decrypt_func
mbedtls_pk_rsa_alt_sign_func sign_func