esys_mu.h
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
******************************************************************************/
#ifndef ESYS_MU_H
#define ESYS_MU_H
#include "tss2_mu.h"
#include "esys_types.h"
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#define ESYS_MAX_SIZE_METADATA 3072
#ifdef __cplusplus
extern "C" {
#endif
TSS2_RC
iesys_MU_IESYSC_PARAM_ENCRYPT_Marshal(
const IESYSC_PARAM_ENCRYPT in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYSC_PARAM_ENCRYPT_Unmarshal(
const uint8_t *buffer,
size_t size,
size_t *offset,
IESYSC_PARAM_ENCRYPT *out);
TSS2_RC
iesys_MU_IESYSC_PARAM_ENCRYPT_check(
const IESYSC_PARAM_ENCRYPT *in);
TSS2_RC
iesys_MU_IESYSC_PARAM_DECRYPT_Marshal(
const IESYSC_PARAM_DECRYPT in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYSC_PARAM_DECRYPT_Unmarshal(
const uint8_t *buffer,
size_t size,
size_t *offset,
IESYSC_PARAM_DECRYPT *out);
TSS2_RC
iesys_MU_IESYSC_PARAM_DECRYPT_check(
const IESYSC_PARAM_DECRYPT *in);
TSS2_RC
iesys_MU_IESYSC_TYPE_POLICY_AUTH_Marshal(
const IESYSC_TYPE_POLICY_AUTH in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYSC_TYPE_POLICY_AUTH_Unmarshal(
const uint8_t *buffer,
size_t size,
size_t *offset,
IESYSC_TYPE_POLICY_AUTH *out);
TSS2_RC
iesys_MU_IESYSC_TYPE_POLICY_AUTH_check(
const IESYSC_TYPE_POLICY_AUTH *in);
TSS2_RC
iesys_MU_IESYS_SESSION_Marshal(
const IESYS_SESSION *in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYS_SESSION_Unmarshal(const uint8_t *buffer,
size_t size,
size_t *offset,
IESYS_SESSION *out);
TSS2_RC
iesys_MU_IESYSC_RESOURCE_TYPE_Marshal(
const IESYSC_RESOURCE_TYPE in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYSC_RESOURCE_TYPE_Unmarshal(
const uint8_t *buffer,
size_t size,
size_t *offset,
IESYSC_RESOURCE_TYPE *out);
TSS2_RC
iesys_MU_IESYSC_RESOURCE_TYPE_check(
const IESYSC_RESOURCE_TYPE *in);
TSS2_RC
iesys_MU_IESYS_RSRC_UNION_Marshal(
const IESYS_RSRC_UNION *in,
UINT32 selector,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYS_RSRC_UNION_Unmarshal(
const uint8_t *buffer,
size_t size,
size_t *offset,
UINT32 selector,
IESYS_RSRC_UNION *out);
TSS2_RC
iesys_MU_IESYS_RESOURCE_Marshal(
const IESYS_RESOURCE *in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYS_RESOURCE_Unmarshal(const uint8_t *buffer,
size_t size,
size_t *offset,
IESYS_RESOURCE *out);
TSS2_RC
iesys_MU_IESYS_METADATA_Marshal(
const IESYS_METADATA *in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYS_METADATA_Unmarshal(const uint8_t *buffer,
size_t size,
size_t *offset,
IESYS_METADATA *out);
TSS2_RC
iesys_MU_IESYS_CONTEXT_DATA_Marshal(
const IESYS_CONTEXT_DATA *in,
uint8_t *buffer,
size_t size,
size_t *offset);
TSS2_RC
iesys_MU_IESYS_CONTEXT_DATA_Unmarshal(const uint8_t *buffer,
size_t size,
size_t *offset,
IESYS_CONTEXT_DATA *out);
#ifdef __cplusplus
}
#endif
#endif /* ESYS_MU_H */
IESYSC_TYPE_POLICY_AUTH
UINT32 IESYSC_TYPE_POLICY_AUTH
Definition esys_types.h:43
IESYSC_PARAM_ENCRYPT
UINT32 IESYSC_PARAM_ENCRYPT
Definition esys_types.h:31
IESYSC_PARAM_DECRYPT
UINT32 IESYSC_PARAM_DECRYPT
Definition esys_types.h:37
IESYSC_RESOURCE_TYPE
UINT32 IESYSC_RESOURCE_TYPE
Definition esys_types.h:73
IESYS_CONTEXT_DATA
Definition esys_types.h:103
IESYS_METADATA
Definition esys_types.h:95
IESYS_RESOURCE
Definition esys_types.h:86
IESYS_SESSION
Definition esys_types.h:51
IESYS_RSRC_UNION
Definition esys_types.h:77