7 #ifndef ESYS_CRYPTO_MBED_H 8 #define ESYS_CRYPTO_MBED_H 11 #include "tss2_tpm2_types.h" 12 #include "tss2-sys/sysapi_util.h" 20 TSS2_RC iesys_cryptmbed_hash_start(
24 TSS2_RC iesys_cryptmbed_hash_update(
26 const uint8_t *buffer,
size_t size);
28 TSS2_RC iesys_cryptmbed_hash_update2b(
32 TSS2_RC iesys_cryptmbed_hash_finish(
37 TSS2_RC iesys_cryptmbed_hash_finish2b(
43 #define iesys_crypto_pk_encrypt iesys_cryptmbed_pk_encrypt 44 #define iesys_crypto_hash_start iesys_cryptmbed_hash_start 45 #define iesys_crypto_hash_update iesys_cryptmbed_hash_update 46 #define iesys_crypto_hash_update2b iesys_cryptmbed_hash_update2b 47 #define iesys_crypto_hash_finish iesys_cryptmbed_hash_finish 48 #define iesys_crypto_hash_finish2b iesys_cryptmbed_hash_finish2b 49 #define iesys_crypto_hash_abort iesys_cryptmbed_hash_abort 51 TSS2_RC iesys_cryptmbed_hmac_start(
57 TSS2_RC iesys_cryptmbed_hmac_start2b(
62 TSS2_RC iesys_cryptmbed_hmac_update(
64 const uint8_t *buffer,
67 TSS2_RC iesys_cryptmbed_hmac_update2b(
71 TSS2_RC iesys_cryptmbed_hmac_finish(
76 TSS2_RC iesys_cryptmbed_hmac_finish2b(
82 #define iesys_crypto_hmac_start iesys_cryptmbed_hmac_start 83 #define iesys_crypto_hmac_start2b iesys_cryptmbed_hmac_start2b 84 #define iesys_crypto_hmac_update iesys_cryptmbed_hmac_update 85 #define iesys_crypto_hmac_update2b iesys_cryptmbed_hmac_update2b 86 #define iesys_crypto_hmac_finish iesys_cryptmbed_hmac_finish 87 #define iesys_crypto_hmac_finish2b iesys_cryptmbed_hmac_finish2b 88 #define iesys_crypto_hmac_abort iesys_cryptmbed_hmac_abort 90 TSS2_RC iesys_cryptmbed_random2b(TPM2B_NONCE *nonce,
size_t num_bytes);
92 TSS2_RC iesys_cryptmbed_pk_encrypt(
102 TSS2_RC iesys_cryptmbed_sym_aes_encrypt(
104 TPM2_ALG_ID tpm_sym_alg,
105 TPMI_AES_KEY_BITS key_bits,
106 TPM2_ALG_ID tpm_mode,
111 TSS2_RC iesys_cryptmbed_sym_aes_decrypt(
113 TPM2_ALG_ID tpm_sym_alg,
114 TPMI_AES_KEY_BITS key_bits,
115 TPM2_ALG_ID tpm_mode,
120 TSS2_RC iesys_cryptmbed_get_ecdh_point(
123 TPM2B_ECC_PARAMETER *Z,
128 #define iesys_crypto_random2b iesys_cryptmbed_random2b 129 #define iesys_crypto_get_ecdh_point iesys_cryptmbed_get_ecdh_point 130 #define iesys_crypto_sym_aes_encrypt iesys_cryptmbed_sym_aes_encrypt 131 #define iesys_crypto_sym_aes_decrypt iesys_cryptmbed_sym_aes_decrypt 133 #define iesys_crypto_init(...) TSS2_RC_SUCCESS; Definition: esys_crypto_mbed.c:28