ADuCM4x50 Device Drivers API Reference Manual  Release 4.0.0.0
adi_crypto_config.h
1 
15 #ifndef __ADI_CRYPTO_CONFIG_H__
16 #define __ADI_CRYPTO_CONFIG_H__
17 #include <adi_global_config.h>
18 
24 /************* Crypto Driver configurations ***************/
25 
30 #define ADI_CRYPTO_ENABLE_ECB_SUPPORT (1)
31 
36 #define ADI_CRYPTO_ENABLE_CTR_SUPPORT (1)
37 
42 #define ADI_CRYPTO_ENABLE_CBC_SUPPORT (1)
43 
48 #define ADI_CRYPTO_ENABLE_CCM_SUPPORT (1)
49 
54 #define ADI_CRYPTO_ENABLE_CMAC_SUPPORT (1)
55 
60 #if defined (__ADUCM4x50__)
61 #define ADI_CRYPTO_ENABLE_HMAC_SUPPORT (1)
62 #endif /*ADuCM4x50*/
63 
67 #define ADI_CRYPTO_ENABLE_SHA_SUPPORT (1)
68 
69 
74 #define ADI_CRYPTO_ENABLE_DMA_SUPPORT (1)
75 
80 #define ADI_CRYPTO_ENABLE_DMA (1)
81 
86 #define ADI_CRYPTO_SHA_OUTPUT_FORMAT (1)
87 
88 
93 #define ADI_CRYPTO_ENABLE_PKSTOR_SUPPORT (0)
94 
95 
96 
97 /************** Macro validation *****************************/
98 
99 #if ((ADI_CRYPTO_ENABLE_DMA_SUPPORT != 0) && (ADI_CRYPTO_ENABLE_DMA_SUPPORT != 1))
100 #error "ADI_CRYPTO_ENABLE_DMA_SUPPORT is invalid"
101 #endif
102 
103 #if ((ADI_CRYPTO_ENABLE_DMA != 0) && (ADI_CRYPTO_ENABLE_DMA != 1))
104 #error "ADI_CRYPTO_ENABLE_DMA is invalid"
105 #endif
106 
107 #if ((ADI_CRYPTO_ENABLE_DMA == 1) && (ADI_CRYPTO_ENABLE_DMA_SUPPORT == 0))
108 #error "DMA cannot be enabled if DMA support is disabled"
109 #endif
110 
111 #if (!defined(__ADUCM4x50__) && (ADI_CRYPTO_ENABLE_PKSTOR_SUPPORT == 1))
112 #error "PKSTOR extensions only supported on ADuCM4x50 platform"
113 #endif
114 
117 #endif /* __ADI_CRYPTO_CONFIG_H__ */