TrustCore SDK Crypto Interface API reference  version 2.0
tap_extern.h
Go to the documentation of this file.
1 /*
2  * tap_extern.h
3  *
4  * @details This file contains the TAP Extern functions declaration
5  *
6  * Mocana Trust Anchor Platform APIs
7  *
8  * Copyright (c) Mocana Corp 2018. All Rights Reserved.
9  * Proprietary and Confidential Material.
10  *
11  */
12 
20 #ifndef TAP_EXTERN_H
21 #define TAP_EXTERN_H
22 
23 #include "../smp/smp_cc.h"
24 #include "../tap/tap_api.h"
25 #include "../tap/tap_utils.h"
26 #include "../tap/tap_smp.h"
27 #include "../crypto/mocasym.h"
28 #include "../crypto/mocasymkeys/tap/rsatap.h"
29 #include "../crypto/mocasymkeys/tap/ecctap.h"
30 #include "../crypto_interface/cryptointerface.h"
31 
32 #if (defined(__ENABLE_MOCANA_TAP__) && defined(__ENABLE_MOCANA_TAP_EXTERN__))
33 
55 MOC_EXTERN sbyte4 MOCANA_TAPExternInit(void **ppFuncPtrGetTapContext);
56 
70 MOC_EXTERN sbyte4 MOCANA_TAPExternDeinit(void **ppFuncPtrGetTapContext);
71 
90 MOC_EXTERN sbyte4
91 MOCANA_TAP_EXTERN_getTapContext(TAP_Context **ppTapContext,
92  TAP_EntityCredentialList **ppTapEntityCred,
93  TAP_CredentialList **ppTapKeyCred,
94  void *pKey, TapOperation op, ubyte getContext);
95 
96 #endif
97 #endif
MOC_EXTERN sbyte4 MOCANA_TAP_EXTERN_getTapContext(TAP_Context **ppTapContext, TAP_EntityCredentialList **ppTapEntityCred, TAP_CredentialList **ppTapKeyCred, void *pKey, TapOperation op, ubyte getContext)
TapContext callback.
MOC_EXTERN sbyte4 MOCANA_TAPExternInit(void **ppFuncPtrGetTapContext)
Initialize TAP and the TapContext callback.
MOC_EXTERN sbyte4 MOCANA_TAPExternDeinit(void **ppFuncPtrGetTapContext)
Uninitialize TAP and the TapContext callback.