ADuCM302x Device Drivers API Reference Manual  Release 3.1.2.0
adi_crypto_config.h
1 
48 #ifndef __ADI_CRYPTO_CONFIG_H__
49 #define __ADI_CRYPTO_CONFIG_H__
50 #include <adi_global_config.h>
51 
57 /************* Crypto Driver configurations ***************/
58 
63 #define ADI_CRYPTO_ENABLE_ECB_SUPPORT (1)
64 
69 #define ADI_CRYPTO_ENABLE_CTR_SUPPORT (1)
70 
75 #define ADI_CRYPTO_ENABLE_CBC_SUPPORT (1)
76 
81 #define ADI_CRYPTO_ENABLE_CCM_SUPPORT (1)
82 
87 #define ADI_CRYPTO_ENABLE_CMAC_SUPPORT (1)
88 
93 #if defined (__ADUCM4x50__)
94 #define ADI_CRYPTO_ENABLE_HMAC_SUPPORT (1)
95 #endif /*ADuCM4x50*/
96 
100 #define ADI_CRYPTO_ENABLE_SHA_SUPPORT (1)
101 
102 
107 #define ADI_CRYPTO_ENABLE_DMA_SUPPORT (1)
108 
113 #define ADI_CRYPTO_ENABLE_DMA (1)
114 
119 #define ADI_CRYPTO_SHA_OUTPUT_FORMAT (1)
120 
121 
126 #define ADI_CRYPTO_ENABLE_PKSTOR_SUPPORT (0)
127 
128 
129 
130 /************** Macro validation *****************************/
131 
132 #if ((ADI_CRYPTO_ENABLE_DMA_SUPPORT != 0) && (ADI_CRYPTO_ENABLE_DMA_SUPPORT != 1))
133 #error "ADI_CRYPTO_ENABLE_DMA_SUPPORT is invalid"
134 #endif
135 
136 #if ((ADI_CRYPTO_ENABLE_DMA != 0) && (ADI_CRYPTO_ENABLE_DMA != 1))
137 #error "ADI_CRYPTO_ENABLE_DMA is invalid"
138 #endif
139 
140 #if ((ADI_CRYPTO_ENABLE_DMA == 1) && (ADI_CRYPTO_ENABLE_DMA_SUPPORT == 0))
141 #error "DMA cannot be enabled if DMA support is disabled"
142 #endif
143 
144 #if (!defined(__ADUCM4x50__) && (ADI_CRYPTO_ENABLE_PKSTOR_SUPPORT == 1))
145 #error "PKSTOR extensions only supported on ADuCM4x50 platform"
146 #endif
147 
150 #endif /* __ADI_CRYPTO_CONFIG_H__ */