blob: 223235182e4008604baa7228afaa6cc1a6d46a24 [file] [log] [blame]
/**
* @file ax_embSeEngine_Internal.h
* @author NXP Semiconductors
* @version 1.0
* @par License
*
* Copyright 2017 NXP
* SPDX-License-Identifier: Apache-2.0
*
* @par Description
* OpenSSL Engine for Embedded Secure Element (A70CM/CI, A71CH)
* Definitions and types with local scope
*/
#ifndef AX_EMB_SE_ENGINE_INTERNAL_H
#define AX_EMB_SE_ENGINE_INTERNAL_H
#include "ax_api.h"
#ifdef __cplusplus
extern "C" {
#endif
// Looking for a key reference in a key object can lead to either of the following results
#define AX_ENGINE_INVOKE_NOTHING 0 // Do no nothing, key object is not valid
#define AX_ENGINE_INVOKE_SE 1 // Found a reference to a key contained in the Secure Element
#define AX_ENGINE_INVOKE_OPENSSL_SW 2 // Pass on key object to OpenSSL SW implementation
#if defined(TGT_A71CH) || defined(TGT_A71CL)
typedef U8 SST_Identifier_t;
#endif
typedef struct _axKeyIdentifier_t
{
SST_Identifier_t ident;
SST_Index_t idx;
} axKeyIdentifier_t;
#ifdef __cplusplus
}
#endif
#endif // AX_EMB_SE_ENGINE_INTERNAL_H