sca-ip-drivers
xaes.h
1 
7 #ifndef XAES_H
8 #define XAES_H
9 
10 #include "xil_io.h"
11 #include "xstatus.h"
12 #include "xaes_hw.h"
13 
14 #define XAES_ENCRYPT XAES_STATUS_NULL_MASK
15 #define XAES_DECRYPT XAES_STATUS_INV_MASK
16 
17 typedef struct
18 {
19  u16 DeviceId;
20  u32 BaseAddr;
21 } XAES_Config;
22 
23 typedef struct
24 {
25  XAES_Config Config;
26  u32 IsReady;
27  u32 IsStarted;
28 } XAES;
29 
30 XAES_Config XAES_ConfigTable[];
31 
32 int XAES_CfgInitialize(XAES *InstancePtr, XAES_Config *ConfigPtr);
33 
38 void XAES_Reset(const XAES *InstancePtr, u32 Mode);
39 
44 void XAES_SetInput(const XAES *InstancePtr, const u32 Data[]);
45 
50 void XAES_SetKey(const XAES *InstancePtr, const u32 Data[]);
51 
56 void XAES_GetInput(const XAES *InstancePtr, u32 Data[]);
57 
62 void XAES_GetKey(const XAES *InstancePtr, u32 Data[]);
63 
68 void XAES_GetOutput(const XAES *InstancePtr, u32 Data[]);
69 
73 void XAES_Run(const XAES *InstancePtr);
74 
75 #endif //XAES_H
Definition: xaes.h:23
Definition: xaes.h:17