4#ifndef ESYS_CRYPTO_MBED_H
5#define ESYS_CRYPTO_MBED_H
7#include "tss2-sys/sysapi_util.h"
8#include "tss2_tpm2_types.h"
19 const uint8_t *buffer,
30#define iesys_crypto_rsa_pk_encrypt_internal iesys_cryptmbed_pk_encrypt
31#define iesys_crypto_hash_start_internal iesys_cryptmbed_hash_start
32#define iesys_crypto_hash_update_internal iesys_cryptmbed_hash_update
33#define iesys_crypto_hash_finish_internal iesys_cryptmbed_hash_finish
34#define iesys_crypto_hash_abort_internal iesys_cryptmbed_hash_abort
43 const uint8_t *buffer,
54#define iesys_crypto_hmac_start_internal iesys_cryptmbed_hmac_start
55#define iesys_crypto_hmac_update_internal iesys_cryptmbed_hmac_update
56#define iesys_crypto_hmac_finish_internal iesys_cryptmbed_hmac_finish
57#define iesys_crypto_hmac_abort_internal iesys_cryptmbed_hmac_abort
59TSS2_RC iesys_cryptmbed_random2b(TPM2B_NONCE *nonce,
size_t num_bytes,
void *userdata);
61TSS2_RC iesys_cryptmbed_pk_encrypt(TPM2B_PUBLIC *key,
70TSS2_RC iesys_cryptmbed_sym_aes_encrypt(uint8_t *key,
71 TPM2_ALG_ID tpm_sym_alg,
72 TPMI_AES_KEY_BITS key_bits,
79TSS2_RC iesys_cryptmbed_sym_aes_decrypt(uint8_t *key,
80 TPM2_ALG_ID tpm_sym_alg,
81 TPMI_AES_KEY_BITS key_bits,
88TSS2_RC iesys_cryptmbed_get_ecdh_point(TPM2B_PUBLIC *key,
90 TPM2B_ECC_PARAMETER *Z,
96TSS2_RC iesys_cryptmbed_init(
void *userdata);
98#define iesys_crypto_get_random2b_internal iesys_cryptmbed_random2b
99#define iesys_crypto_get_ecdh_point_internal iesys_cryptmbed_get_ecdh_point
100#define iesys_crypto_aes_encrypt_internal iesys_cryptmbed_sym_aes_encrypt
101#define iesys_crypto_aes_decrypt_internal iesys_cryptmbed_sym_aes_decrypt
102#define iesys_crypto_sm4_encrypt_internal NULL
103#define iesys_crypto_sm4_decrypt_internal NULL
105#define iesys_crypto_init_internal iesys_cryptmbed_init
Definition esys_crypto_mbed.c:32