AT-NFC 2.1 (win) AT-NFC kernel set

hal_cv.h
Go to the documentation of this file.
1 #ifndef HAL_CV_H
2 #define HAL_CV_H
3
4 /* ********** HAL terminal custom cardholder verification functions API declaration ******** */
8 /* ***************************************************************************************** */
9
10 /* ***************************************************************************************** */
18 /* ***************************************************************************************** */
19
20
21 #ifdef KER_ENABLE_CUSTOM_CV_RULE
22
23 /* **************************** hal_cv_check_cvm_condition ********************************* */
32 extern KER_BOOL hal_cv_check_cvm_condition(KER_CTX_PARAM KER_BYTE btCVM, KER_BYTE btCondition);
33
35 #define KER_CHECK_CUSTOM_CVM_COND(CVM,Condition) hal_cv_check_cvm_condition(KER_CTX CVM, Condition)
36
37 /* ********************************* hal_cv_check_cvm ************************************** */
47 extern KER_BYTE hal_cv_check_cvm(KER_CTX_PARAM KER_BYTE btCVM);
48
50 #define KER_CHECK_CUSTOM_CVM(CVM) hal_cv_check_cvm(KER_CTX CVM)
51
52 /* ********************************* hal_cv_apply_cvm ************************************** */
64 extern KER_BYTE hal_cv_apply_cvm(KER_CTX_PARAM KER_BYTE btCVM, KER_BYTE* pbtOutcomeCVM);
65
67 #define KER_APPLY_CUSTOM_CVM(CVM, OutcomeCVM) hal_cv_apply_cvm(KER_CTX CVM, OutcomeCVM)
68
69 #else
71 #define KER_CHECK_CUSTOM_CVM_COND(CVM,Condition) KER_FALSE
73 #define KER_CHECK_CUSTOM_CVM(CVM) KER_CVM_RES_UNREC
75 #define KER_APPLY_CUSTOM_CVM(CVM, OutcomeCVM) KER_CVM_RES_UNREC
76 #endif
77
78 /* ************************** CALLBACK_CV_CHECK_CUST_CVM_CONDITION ************************* */
90 typedef KER_BOOL(KER_API *CALLBACK_CV_CHECK_CUST_CVM_CONDITION)(KER_CTX_PARAM KER_VOID* pCallbackHandle, KER_BYTE btCVM, KER_BYTE btCondition);
91
92
93 /* ******************************** CALLBACK_CV_CHECK_CUST_CVM ***************************** */
106 typedef KER_BYTE(KER_API *CALLBACK_CV_CHECK_CUST_CVM)(KER_CTX_PARAM KER_VOID* pCallbackHandle, KER_BYTE btCVM);
107
108
109 #endif /* HAL_CV_H */
KER_VOID
void KER_VOID
Definition: emv_platform.h:66
KER_BOOL
KER_INT8U KER_BOOL
Definition: emv_platform.h:67
KER_BYTE
uint8_t KER_BYTE
Definition: emv_platform.h:70
KER_CTX_PARAM
#define KER_CTX_PARAM
Definition: emv_context.h:53
CALLBACK_CV_CHECK_CUST_CVM
KER_BYTE(KER_API * CALLBACK_CV_CHECK_CUST_CVM)(KER_CTX_PARAM KER_VOID *pCallbackHandle, KER_BYTE btCVM)
Callback type for check if custom cvm recognized and supported.
Definition: hal_cv.h:106
CALLBACK_CV_CHECK_CUST_CVM_CONDITION
KER_BOOL(KER_API * CALLBACK_CV_CHECK_CUST_CVM_CONDITION)(KER_CTX_PARAM KER_VOID *pCallbackHandle, KER_BYTE btCVM, KER_BYTE btCondition)
Callback type for check custom cvm condition.
Definition: hal_cv.h:90