Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

325 lines
19 KiB

  1. /**
  2. * \file
  3. *
  4. * \brief Component description for AES
  5. *
  6. * Copyright (c) 2016 Atmel Corporation,
  7. * a wholly owned subsidiary of Microchip Technology Inc.
  8. *
  9. * \asf_license_start
  10. *
  11. * \page License
  12. *
  13. * Licensed under the Apache License, Version 2.0 (the "License");
  14. * you may not use this file except in compliance with the License.
  15. * You may obtain a copy of the Licence at
  16. *
  17. * http://www.apache.org/licenses/LICENSE-2.0
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. * \asf_license_stop
  26. *
  27. */
  28. #ifndef _SAML21_AES_COMPONENT_
  29. #define _SAML21_AES_COMPONENT_
  30. /* ========================================================================== */
  31. /** SOFTWARE API DEFINITION FOR AES */
  32. /* ========================================================================== */
  33. /** \addtogroup SAML21_AES Advanced Encryption Standard */
  34. /*@{*/
  35. #define AES_U2238
  36. #define REV_AES 0x200
  37. /* -------- AES_CTRLA : (AES Offset: 0x00) (R/W 32) Control A -------- */
  38. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  39. typedef union {
  40. struct {
  41. uint32_t SWRST:1; /*!< bit: 0 Software Reset */
  42. uint32_t ENABLE:1; /*!< bit: 1 Enable */
  43. uint32_t AESMODE:3; /*!< bit: 2.. 4 AES Modes of operation */
  44. uint32_t CFBS:3; /*!< bit: 5.. 7 CFB Types */
  45. uint32_t KEYSIZE:2; /*!< bit: 8.. 9 Keysize */
  46. uint32_t CIPHER:1; /*!< bit: 10 Cipher mode */
  47. uint32_t STARTMODE:1; /*!< bit: 11 Start mode */
  48. uint32_t LOD:1; /*!< bit: 12 LOD Enable */
  49. uint32_t KEYGEN:1; /*!< bit: 13 Last key generation */
  50. uint32_t XORKEY:1; /*!< bit: 14 Xor Key operation */
  51. uint32_t :1; /*!< bit: 15 Reserved */
  52. uint32_t CTYPE:4; /*!< bit: 16..19 Counter measure types */
  53. uint32_t :12; /*!< bit: 20..31 Reserved */
  54. } bit; /*!< Structure used for bit access */
  55. uint32_t reg; /*!< Type used for register access */
  56. } AES_CTRLA_Type;
  57. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  58. #define AES_CTRLA_OFFSET 0x00 /**< \brief (AES_CTRLA offset) Control A */
  59. #define AES_CTRLA_RESETVALUE _U(0x00000000) /**< \brief (AES_CTRLA reset_value) Control A */
  60. #define AES_CTRLA_SWRST_Pos 0 /**< \brief (AES_CTRLA) Software Reset */
  61. #define AES_CTRLA_SWRST (_U(0x1) << AES_CTRLA_SWRST_Pos)
  62. #define AES_CTRLA_ENABLE_Pos 1 /**< \brief (AES_CTRLA) Enable */
  63. #define AES_CTRLA_ENABLE (_U(0x1) << AES_CTRLA_ENABLE_Pos)
  64. #define AES_CTRLA_AESMODE_Pos 2 /**< \brief (AES_CTRLA) AES Modes of operation */
  65. #define AES_CTRLA_AESMODE_Msk (_U(0x7) << AES_CTRLA_AESMODE_Pos)
  66. #define AES_CTRLA_AESMODE(value) (AES_CTRLA_AESMODE_Msk & ((value) << AES_CTRLA_AESMODE_Pos))
  67. #define AES_CTRLA_CFBS_Pos 5 /**< \brief (AES_CTRLA) CFB Types */
  68. #define AES_CTRLA_CFBS_Msk (_U(0x7) << AES_CTRLA_CFBS_Pos)
  69. #define AES_CTRLA_CFBS(value) (AES_CTRLA_CFBS_Msk & ((value) << AES_CTRLA_CFBS_Pos))
  70. #define AES_CTRLA_KEYSIZE_Pos 8 /**< \brief (AES_CTRLA) Keysize */
  71. #define AES_CTRLA_KEYSIZE_Msk (_U(0x3) << AES_CTRLA_KEYSIZE_Pos)
  72. #define AES_CTRLA_KEYSIZE(value) (AES_CTRLA_KEYSIZE_Msk & ((value) << AES_CTRLA_KEYSIZE_Pos))
  73. #define AES_CTRLA_CIPHER_Pos 10 /**< \brief (AES_CTRLA) Cipher mode */
  74. #define AES_CTRLA_CIPHER (_U(0x1) << AES_CTRLA_CIPHER_Pos)
  75. #define AES_CTRLA_STARTMODE_Pos 11 /**< \brief (AES_CTRLA) Start mode */
  76. #define AES_CTRLA_STARTMODE (_U(0x1) << AES_CTRLA_STARTMODE_Pos)
  77. #define AES_CTRLA_LOD_Pos 12 /**< \brief (AES_CTRLA) LOD Enable */
  78. #define AES_CTRLA_LOD (_U(0x1) << AES_CTRLA_LOD_Pos)
  79. #define AES_CTRLA_KEYGEN_Pos 13 /**< \brief (AES_CTRLA) Last key generation */
  80. #define AES_CTRLA_KEYGEN (_U(0x1) << AES_CTRLA_KEYGEN_Pos)
  81. #define AES_CTRLA_XORKEY_Pos 14 /**< \brief (AES_CTRLA) Xor Key operation */
  82. #define AES_CTRLA_XORKEY (_U(0x1) << AES_CTRLA_XORKEY_Pos)
  83. #define AES_CTRLA_CTYPE_Pos 16 /**< \brief (AES_CTRLA) Counter measure types */
  84. #define AES_CTRLA_CTYPE_Msk (_U(0xF) << AES_CTRLA_CTYPE_Pos)
  85. #define AES_CTRLA_CTYPE(value) (AES_CTRLA_CTYPE_Msk & ((value) << AES_CTRLA_CTYPE_Pos))
  86. #define AES_CTRLA_MASK _U(0x000F7FFF) /**< \brief (AES_CTRLA) MASK Register */
  87. /* -------- AES_CTRLB : (AES Offset: 0x04) (R/W 8) Control B -------- */
  88. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  89. typedef union {
  90. struct {
  91. uint8_t START:1; /*!< bit: 0 Manual Start */
  92. uint8_t NEWMSG:1; /*!< bit: 1 New message */
  93. uint8_t EOM:1; /*!< bit: 2 End of message */
  94. uint8_t GFMUL:1; /*!< bit: 3 GF Multiplication */
  95. uint8_t :4; /*!< bit: 4.. 7 Reserved */
  96. } bit; /*!< Structure used for bit access */
  97. uint8_t reg; /*!< Type used for register access */
  98. } AES_CTRLB_Type;
  99. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  100. #define AES_CTRLB_OFFSET 0x04 /**< \brief (AES_CTRLB offset) Control B */
  101. #define AES_CTRLB_RESETVALUE _U(0x00) /**< \brief (AES_CTRLB reset_value) Control B */
  102. #define AES_CTRLB_START_Pos 0 /**< \brief (AES_CTRLB) Manual Start */
  103. #define AES_CTRLB_START (_U(0x1) << AES_CTRLB_START_Pos)
  104. #define AES_CTRLB_NEWMSG_Pos 1 /**< \brief (AES_CTRLB) New message */
  105. #define AES_CTRLB_NEWMSG (_U(0x1) << AES_CTRLB_NEWMSG_Pos)
  106. #define AES_CTRLB_EOM_Pos 2 /**< \brief (AES_CTRLB) End of message */
  107. #define AES_CTRLB_EOM (_U(0x1) << AES_CTRLB_EOM_Pos)
  108. #define AES_CTRLB_GFMUL_Pos 3 /**< \brief (AES_CTRLB) GF Multiplication */
  109. #define AES_CTRLB_GFMUL (_U(0x1) << AES_CTRLB_GFMUL_Pos)
  110. #define AES_CTRLB_MASK _U(0x0F) /**< \brief (AES_CTRLB) MASK Register */
  111. /* -------- AES_INTENCLR : (AES Offset: 0x05) (R/W 8) Interrupt Enable Clear -------- */
  112. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  113. typedef union {
  114. struct {
  115. uint8_t ENCCMP:1; /*!< bit: 0 Encryption Complete */
  116. uint8_t GFMCMP:1; /*!< bit: 1 GF Multiplication Complete */
  117. uint8_t :6; /*!< bit: 2.. 7 Reserved */
  118. } bit; /*!< Structure used for bit access */
  119. uint8_t reg; /*!< Type used for register access */
  120. } AES_INTENCLR_Type;
  121. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  122. #define AES_INTENCLR_OFFSET 0x05 /**< \brief (AES_INTENCLR offset) Interrupt Enable Clear */
  123. #define AES_INTENCLR_RESETVALUE _U(0x00) /**< \brief (AES_INTENCLR reset_value) Interrupt Enable Clear */
  124. #define AES_INTENCLR_ENCCMP_Pos 0 /**< \brief (AES_INTENCLR) Encryption Complete */
  125. #define AES_INTENCLR_ENCCMP (_U(0x1) << AES_INTENCLR_ENCCMP_Pos)
  126. #define AES_INTENCLR_GFMCMP_Pos 1 /**< \brief (AES_INTENCLR) GF Multiplication Complete */
  127. #define AES_INTENCLR_GFMCMP (_U(0x1) << AES_INTENCLR_GFMCMP_Pos)
  128. #define AES_INTENCLR_MASK _U(0x03) /**< \brief (AES_INTENCLR) MASK Register */
  129. /* -------- AES_INTENSET : (AES Offset: 0x06) (R/W 8) Interrupt Enable Set -------- */
  130. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  131. typedef union {
  132. struct {
  133. uint8_t ENCCMP:1; /*!< bit: 0 Encryption Complete */
  134. uint8_t GFMCMP:1; /*!< bit: 1 GF Multiplication Complete */
  135. uint8_t :6; /*!< bit: 2.. 7 Reserved */
  136. } bit; /*!< Structure used for bit access */
  137. uint8_t reg; /*!< Type used for register access */
  138. } AES_INTENSET_Type;
  139. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  140. #define AES_INTENSET_OFFSET 0x06 /**< \brief (AES_INTENSET offset) Interrupt Enable Set */
  141. #define AES_INTENSET_RESETVALUE _U(0x00) /**< \brief (AES_INTENSET reset_value) Interrupt Enable Set */
  142. #define AES_INTENSET_ENCCMP_Pos 0 /**< \brief (AES_INTENSET) Encryption Complete */
  143. #define AES_INTENSET_ENCCMP (_U(0x1) << AES_INTENSET_ENCCMP_Pos)
  144. #define AES_INTENSET_GFMCMP_Pos 1 /**< \brief (AES_INTENSET) GF Multiplication Complete */
  145. #define AES_INTENSET_GFMCMP (_U(0x1) << AES_INTENSET_GFMCMP_Pos)
  146. #define AES_INTENSET_MASK _U(0x03) /**< \brief (AES_INTENSET) MASK Register */
  147. /* -------- AES_INTFLAG : (AES Offset: 0x07) (R/W 8) Interrupt Flag Status -------- */
  148. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  149. typedef union { // __I to avoid read-modify-write on write-to-clear register
  150. struct {
  151. __I uint8_t ENCCMP:1; /*!< bit: 0 Encryption Complete */
  152. __I uint8_t GFMCMP:1; /*!< bit: 1 GF Multiplication Complete */
  153. __I uint8_t :6; /*!< bit: 2.. 7 Reserved */
  154. } bit; /*!< Structure used for bit access */
  155. uint8_t reg; /*!< Type used for register access */
  156. } AES_INTFLAG_Type;
  157. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  158. #define AES_INTFLAG_OFFSET 0x07 /**< \brief (AES_INTFLAG offset) Interrupt Flag Status */
  159. #define AES_INTFLAG_RESETVALUE _U(0x00) /**< \brief (AES_INTFLAG reset_value) Interrupt Flag Status */
  160. #define AES_INTFLAG_ENCCMP_Pos 0 /**< \brief (AES_INTFLAG) Encryption Complete */
  161. #define AES_INTFLAG_ENCCMP (_U(0x1) << AES_INTFLAG_ENCCMP_Pos)
  162. #define AES_INTFLAG_GFMCMP_Pos 1 /**< \brief (AES_INTFLAG) GF Multiplication Complete */
  163. #define AES_INTFLAG_GFMCMP (_U(0x1) << AES_INTFLAG_GFMCMP_Pos)
  164. #define AES_INTFLAG_MASK _U(0x03) /**< \brief (AES_INTFLAG) MASK Register */
  165. /* -------- AES_DATABUFPTR : (AES Offset: 0x08) (R/W 8) Data buffer pointer -------- */
  166. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  167. typedef union {
  168. struct {
  169. uint8_t INDATAPTR:2; /*!< bit: 0.. 1 Input Data Pointer */
  170. uint8_t :6; /*!< bit: 2.. 7 Reserved */
  171. } bit; /*!< Structure used for bit access */
  172. uint8_t reg; /*!< Type used for register access */
  173. } AES_DATABUFPTR_Type;
  174. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  175. #define AES_DATABUFPTR_OFFSET 0x08 /**< \brief (AES_DATABUFPTR offset) Data buffer pointer */
  176. #define AES_DATABUFPTR_RESETVALUE _U(0x00) /**< \brief (AES_DATABUFPTR reset_value) Data buffer pointer */
  177. #define AES_DATABUFPTR_INDATAPTR_Pos 0 /**< \brief (AES_DATABUFPTR) Input Data Pointer */
  178. #define AES_DATABUFPTR_INDATAPTR_Msk (_U(0x3) << AES_DATABUFPTR_INDATAPTR_Pos)
  179. #define AES_DATABUFPTR_INDATAPTR(value) (AES_DATABUFPTR_INDATAPTR_Msk & ((value) << AES_DATABUFPTR_INDATAPTR_Pos))
  180. #define AES_DATABUFPTR_MASK _U(0x03) /**< \brief (AES_DATABUFPTR) MASK Register */
  181. /* -------- AES_DBGCTRL : (AES Offset: 0x09) ( /W 8) Debug control -------- */
  182. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  183. typedef union {
  184. struct {
  185. uint8_t DBGRUN:1; /*!< bit: 0 Debug Run */
  186. uint8_t :7; /*!< bit: 1.. 7 Reserved */
  187. } bit; /*!< Structure used for bit access */
  188. uint8_t reg; /*!< Type used for register access */
  189. } AES_DBGCTRL_Type;
  190. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  191. #define AES_DBGCTRL_OFFSET 0x09 /**< \brief (AES_DBGCTRL offset) Debug control */
  192. #define AES_DBGCTRL_RESETVALUE _U(0x00) /**< \brief (AES_DBGCTRL reset_value) Debug control */
  193. #define AES_DBGCTRL_DBGRUN_Pos 0 /**< \brief (AES_DBGCTRL) Debug Run */
  194. #define AES_DBGCTRL_DBGRUN (_U(0x1) << AES_DBGCTRL_DBGRUN_Pos)
  195. #define AES_DBGCTRL_MASK _U(0x01) /**< \brief (AES_DBGCTRL) MASK Register */
  196. /* -------- AES_KEYWORD : (AES Offset: 0x0C) ( /W 32) Keyword n -------- */
  197. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  198. typedef union {
  199. uint32_t reg; /*!< Type used for register access */
  200. } AES_KEYWORD_Type;
  201. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  202. #define AES_KEYWORD_OFFSET 0x0C /**< \brief (AES_KEYWORD offset) Keyword n */
  203. #define AES_KEYWORD_RESETVALUE _U(0x00000000) /**< \brief (AES_KEYWORD reset_value) Keyword n */
  204. #define AES_KEYWORD_MASK _U(0xFFFFFFFF) /**< \brief (AES_KEYWORD) MASK Register */
  205. /* -------- AES_INDATA : (AES Offset: 0x38) (R/W 32) Indata -------- */
  206. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  207. typedef union {
  208. uint32_t reg; /*!< Type used for register access */
  209. } AES_INDATA_Type;
  210. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  211. #define AES_INDATA_OFFSET 0x38 /**< \brief (AES_INDATA offset) Indata */
  212. #define AES_INDATA_RESETVALUE _U(0x00000000) /**< \brief (AES_INDATA reset_value) Indata */
  213. #define AES_INDATA_MASK _U(0xFFFFFFFF) /**< \brief (AES_INDATA) MASK Register */
  214. /* -------- AES_INTVECTV : (AES Offset: 0x3C) ( /W 32) Initialisation Vector n -------- */
  215. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  216. typedef union {
  217. uint32_t reg; /*!< Type used for register access */
  218. } AES_INTVECTV_Type;
  219. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  220. #define AES_INTVECTV_OFFSET 0x3C /**< \brief (AES_INTVECTV offset) Initialisation Vector n */
  221. #define AES_INTVECTV_RESETVALUE _U(0x00000000) /**< \brief (AES_INTVECTV reset_value) Initialisation Vector n */
  222. #define AES_INTVECTV_MASK _U(0xFFFFFFFF) /**< \brief (AES_INTVECTV) MASK Register */
  223. /* -------- AES_HASHKEY : (AES Offset: 0x5C) (R/W 32) Hash key n -------- */
  224. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  225. typedef union {
  226. uint32_t reg; /*!< Type used for register access */
  227. } AES_HASHKEY_Type;
  228. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  229. #define AES_HASHKEY_OFFSET 0x5C /**< \brief (AES_HASHKEY offset) Hash key n */
  230. #define AES_HASHKEY_RESETVALUE _U(0x00000000) /**< \brief (AES_HASHKEY reset_value) Hash key n */
  231. #define AES_HASHKEY_MASK _U(0xFFFFFFFF) /**< \brief (AES_HASHKEY) MASK Register */
  232. /* -------- AES_GHASH : (AES Offset: 0x6C) (R/W 32) Galois Hash n -------- */
  233. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  234. typedef union {
  235. uint32_t reg; /*!< Type used for register access */
  236. } AES_GHASH_Type;
  237. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  238. #define AES_GHASH_OFFSET 0x6C /**< \brief (AES_GHASH offset) Galois Hash n */
  239. #define AES_GHASH_RESETVALUE _U(0x00000000) /**< \brief (AES_GHASH reset_value) Galois Hash n */
  240. #define AES_GHASH_MASK _U(0xFFFFFFFF) /**< \brief (AES_GHASH) MASK Register */
  241. /* -------- AES_CIPLEN : (AES Offset: 0x80) (R/W 32) Cipher Length -------- */
  242. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  243. typedef union {
  244. uint32_t reg; /*!< Type used for register access */
  245. } AES_CIPLEN_Type;
  246. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  247. #define AES_CIPLEN_OFFSET 0x80 /**< \brief (AES_CIPLEN offset) Cipher Length */
  248. #define AES_CIPLEN_RESETVALUE _U(0x00000000) /**< \brief (AES_CIPLEN reset_value) Cipher Length */
  249. #define AES_CIPLEN_MASK _U(0xFFFFFFFF) /**< \brief (AES_CIPLEN) MASK Register */
  250. /* -------- AES_RANDSEED : (AES Offset: 0x84) (R/W 32) Random Seed -------- */
  251. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  252. typedef union {
  253. uint32_t reg; /*!< Type used for register access */
  254. } AES_RANDSEED_Type;
  255. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  256. #define AES_RANDSEED_OFFSET 0x84 /**< \brief (AES_RANDSEED offset) Random Seed */
  257. #define AES_RANDSEED_RESETVALUE _U(0x00000000) /**< \brief (AES_RANDSEED reset_value) Random Seed */
  258. #define AES_RANDSEED_MASK _U(0xFFFFFFFF) /**< \brief (AES_RANDSEED) MASK Register */
  259. /** \brief AES hardware registers */
  260. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  261. typedef struct {
  262. __IO AES_CTRLA_Type CTRLA; /**< \brief Offset: 0x00 (R/W 32) Control A */
  263. __IO AES_CTRLB_Type CTRLB; /**< \brief Offset: 0x04 (R/W 8) Control B */
  264. __IO AES_INTENCLR_Type INTENCLR; /**< \brief Offset: 0x05 (R/W 8) Interrupt Enable Clear */
  265. __IO AES_INTENSET_Type INTENSET; /**< \brief Offset: 0x06 (R/W 8) Interrupt Enable Set */
  266. __IO AES_INTFLAG_Type INTFLAG; /**< \brief Offset: 0x07 (R/W 8) Interrupt Flag Status */
  267. __IO AES_DATABUFPTR_Type DATABUFPTR; /**< \brief Offset: 0x08 (R/W 8) Data buffer pointer */
  268. __O AES_DBGCTRL_Type DBGCTRL; /**< \brief Offset: 0x09 ( /W 8) Debug control */
  269. RoReg8 Reserved1[0x2];
  270. __O AES_KEYWORD_Type KEYWORD[8]; /**< \brief Offset: 0x0C ( /W 32) Keyword n */
  271. RoReg8 Reserved2[0xC];
  272. __IO AES_INDATA_Type INDATA; /**< \brief Offset: 0x38 (R/W 32) Indata */
  273. __O AES_INTVECTV_Type INTVECTV[4]; /**< \brief Offset: 0x3C ( /W 32) Initialisation Vector n */
  274. RoReg8 Reserved3[0x10];
  275. __IO AES_HASHKEY_Type HASHKEY[4]; /**< \brief Offset: 0x5C (R/W 32) Hash key n */
  276. __IO AES_GHASH_Type GHASH[4]; /**< \brief Offset: 0x6C (R/W 32) Galois Hash n */
  277. RoReg8 Reserved4[0x4];
  278. __IO AES_CIPLEN_Type CIPLEN; /**< \brief Offset: 0x80 (R/W 32) Cipher Length */
  279. __IO AES_RANDSEED_Type RANDSEED; /**< \brief Offset: 0x84 (R/W 32) Random Seed */
  280. } Aes;
  281. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  282. /*@}*/
  283. #endif /* _SAML21_AES_COMPONENT_ */