simple-speck.lst 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. 1 .cpu cortex-m4
  2. 2 .eabi_attribute 20, 1
  3. 3 .eabi_attribute 21, 1
  4. 4 .eabi_attribute 23, 3
  5. 5 .eabi_attribute 24, 1
  6. 6 .eabi_attribute 25, 1
  7. 7 .eabi_attribute 26, 1
  8. 8 .eabi_attribute 30, 4
  9. 9 .eabi_attribute 34, 1
  10. 10 .eabi_attribute 18, 4
  11. 11 .file "simple-speck.c"
  12. 12 .text
  13. 13 .Ltext0:
  14. 14 .cfi_sections .debug_frame
  15. 15 .section .text.set_key,"ax",%progbits
  16. 16 .align 1
  17. 17 .global set_key
  18. 18 .arch armv7e-m
  19. 19 .syntax unified
  20. 20 .thumb
  21. 21 .thumb_func
  22. 22 .fpu softvfp
  23. 24 set_key:
  24. 25 .LVL0:
  25. 26 .LFB1:
  26. 27 .file 1 "simple-speck.c"
  27. 1:simple-speck.c **** #include "hal.h"
  28. 2:simple-speck.c **** #include <stdint.h>
  29. 3:simple-speck.c **** #include <stdlib.h>
  30. 4:simple-speck.c ****
  31. 5:simple-speck.c **** #include "simpleserial.h"
  32. 6:simple-speck.c **** #include "speck.h"
  33. 7:simple-speck.c ****
  34. 8:simple-speck.c **** u8 gkey[8] = {0x00};
  35. 9:simple-speck.c ****
  36. 10:simple-speck.c ****
  37. 11:simple-speck.c **** uint8_t get_key(uint8_t* k, uint8_t len) {
  38. 12:simple-speck.c **** simpleserial_put('o', 8, gkey);
  39. 13:simple-speck.c **** return 0x00;
  40. 14:simple-speck.c **** }
  41. 15:simple-speck.c ****
  42. 16:simple-speck.c **** uint8_t set_key(uint8_t* key, uint8_t len) {
  43. 28 .loc 1 16 44 view -0
  44. 29 .cfi_startproc
  45. 30 @ args = 0, pretend = 0, frame = 0
  46. 31 @ frame_needed = 0, uses_anonymous_args = 0
  47. 32 @ link register save eliminated.
  48. 17:simple-speck.c **** memcpy(gkey, key, 8);
  49. 33 .loc 1 17 5 view .LVU1
  50. 34 0000 034A ldr r2, .L2
  51. 35 0002 0368 ldr r3, [r0] @ unaligned
  52. 36 0004 1360 str r3, [r2] @ unaligned
  53. 37 0006 4368 ldr r3, [r0, #4] @ unaligned
  54. 38 0008 5360 str r3, [r2, #4] @ unaligned
  55. 18:simple-speck.c **** return 0x00;
  56. 39 .loc 1 18 5 view .LVU2
  57. 19:simple-speck.c **** }
  58. 40 .loc 1 19 1 is_stmt 0 view .LVU3
  59. 41 000a 0020 movs r0, #0
  60. 42 .LVL1:
  61. 43 .loc 1 19 1 view .LVU4
  62. 44 000c 7047 bx lr
  63. 45 .L3:
  64. 46 000e 00BF .align 2
  65. 47 .L2:
  66. 48 0010 00000000 .word .LANCHOR0
  67. 49 .cfi_endproc
  68. 50 .LFE1:
  69. 52 .section .text.get_key,"ax",%progbits
  70. 53 .align 1
  71. 54 .global get_key
  72. 55 .syntax unified
  73. 56 .thumb
  74. 57 .thumb_func
  75. 58 .fpu softvfp
  76. 60 get_key:
  77. 61 .LVL2:
  78. 62 .LFB0:
  79. 11:simple-speck.c **** simpleserial_put('o', 8, gkey);
  80. 63 .loc 1 11 42 is_stmt 1 view -0
  81. 64 .cfi_startproc
  82. 65 @ args = 0, pretend = 0, frame = 0
  83. 66 @ frame_needed = 0, uses_anonymous_args = 0
  84. 12:simple-speck.c **** return 0x00;
  85. 67 .loc 1 12 2 view .LVU6
  86. 11:simple-speck.c **** simpleserial_put('o', 8, gkey);
  87. 68 .loc 1 11 42 is_stmt 0 view .LVU7
  88. 69 0000 08B5 push {r3, lr}
  89. 70 .LCFI0:
  90. 71 .cfi_def_cfa_offset 8
  91. 72 .cfi_offset 3, -8
  92. 73 .cfi_offset 14, -4
  93. 12:simple-speck.c **** return 0x00;
  94. 74 .loc 1 12 2 view .LVU8
  95. 75 0002 034A ldr r2, .L5
  96. 76 0004 0821 movs r1, #8
  97. 77 .LVL3:
  98. 12:simple-speck.c **** return 0x00;
  99. 78 .loc 1 12 2 view .LVU9
  100. 79 0006 6F20 movs r0, #111
  101. 80 .LVL4:
  102. 12:simple-speck.c **** return 0x00;
  103. 81 .loc 1 12 2 view .LVU10
  104. 82 0008 FFF7FEFF bl simpleserial_put
  105. 83 .LVL5:
  106. 13:simple-speck.c **** }
  107. 84 .loc 1 13 2 is_stmt 1 view .LVU11
  108. 14:simple-speck.c ****
  109. 85 .loc 1 14 1 is_stmt 0 view .LVU12
  110. 86 000c 0020 movs r0, #0
  111. 87 000e 08BD pop {r3, pc}
  112. 88 .L6:
  113. 89 .align 2
  114. 90 .L5:
  115. 91 0010 00000000 .word .LANCHOR0
  116. 92 .cfi_endproc
  117. 93 .LFE0:
  118. 95 .section .text.reset,"ax",%progbits
  119. 96 .align 1
  120. 97 .global reset
  121. 98 .syntax unified
  122. 99 .thumb
  123. 100 .thumb_func
  124. 101 .fpu softvfp
  125. 103 reset:
  126. 104 .LVL6:
  127. 105 .LFB4:
  128. 20:simple-speck.c ****
  129. 21:simple-speck.c **** uint8_t get_pt(uint8_t* pt, uint8_t len) {
  130. 22:simple-speck.c **** /**********************************
  131. 23:simple-speck.c **** * Start user-specific code here. */
  132. 24:simple-speck.c **** trigger_high();
  133. 25:simple-speck.c ****
  134. 26:simple-speck.c **** // Only for testing purposes
  135. 27:simple-speck.c **** volatile uint8_t testing_output[] = {0x42, 0x41, 0x41, 0x41,0x41, 0x41, 0x41, 0x41, 0x41, 0
  136. 28:simple-speck.c ****
  137. 29:simple-speck.c ****
  138. 30:simple-speck.c **** trigger_low();
  139. 31:simple-speck.c **** /* End user-specific code here. *
  140. 32:simple-speck.c **** ********************************/
  141. 33:simple-speck.c **** simpleserial_put('r', 16, testing_output);
  142. 34:simple-speck.c ****
  143. 35:simple-speck.c **** return 0x00;
  144. 36:simple-speck.c **** }
  145. 37:simple-speck.c ****
  146. 38:simple-speck.c ****
  147. 39:simple-speck.c **** uint8_t encrypt_block(uint8_t* pt, uint8_t len) {
  148. 40:simple-speck.c ****
  149. 41:simple-speck.c **** trigger_high(); // TRIGGER START
  150. 42:simple-speck.c ****
  151. 43:simple-speck.c **** u8 key[8] = {0x00};
  152. 44:simple-speck.c **** memcpy(key, gkey, 8); // copy the globally set encryption key
  153. 45:simple-speck.c **** u8 ct[4] = {0x00};
  154. 46:simple-speck.c **** Speck3264_EncryptBlock(pt, key, ct); // the encryption happens here
  155. 47:simple-speck.c ****
  156. 48:simple-speck.c **** trigger_low(); // TRIGGER STOP
  157. 49:simple-speck.c ****
  158. 50:simple-speck.c **** simpleserial_put('c', 4, ct);
  159. 51:simple-speck.c **** return 0x00;
  160. 52:simple-speck.c **** }
  161. 53:simple-speck.c ****
  162. 54:simple-speck.c ****
  163. 55:simple-speck.c **** uint8_t reset(uint8_t* x, uint8_t len) {
  164. 106 .loc 1 55 40 is_stmt 1 view -0
  165. 107 .cfi_startproc
  166. 108 @ args = 0, pretend = 0, frame = 0
  167. 109 @ frame_needed = 0, uses_anonymous_args = 0
  168. 56:simple-speck.c **** simpleserial_put('r', 0, NULL);
  169. 110 .loc 1 56 2 view .LVU14
  170. 55:simple-speck.c **** simpleserial_put('r', 0, NULL);
  171. 111 .loc 1 55 40 is_stmt 0 view .LVU15
  172. 112 0000 08B5 push {r3, lr}
  173. 113 .LCFI1:
  174. 114 .cfi_def_cfa_offset 8
  175. 115 .cfi_offset 3, -8
  176. 116 .cfi_offset 14, -4
  177. 117 .loc 1 56 2 view .LVU16
  178. 118 0002 0022 movs r2, #0
  179. 119 0004 1146 mov r1, r2
  180. 120 .LVL7:
  181. 121 .loc 1 56 2 view .LVU17
  182. 122 0006 7220 movs r0, #114
  183. 123 .LVL8:
  184. 124 .loc 1 56 2 view .LVU18
  185. 125 0008 FFF7FEFF bl simpleserial_put
  186. 126 .LVL9:
  187. 57:simple-speck.c **** // Reset key here if needed
  188. 58:simple-speck.c **** return 0x00;
  189. 127 .loc 1 58 2 is_stmt 1 view .LVU19
  190. 59:simple-speck.c **** }
  191. 128 .loc 1 59 1 is_stmt 0 view .LVU20
  192. 129 000c 0020 movs r0, #0
  193. 130 000e 08BD pop {r3, pc}
  194. 131 .cfi_endproc
  195. 132 .LFE4:
  196. 134 .section .rodata.str1.1,"aMS",%progbits,1
  197. 135 .LC0:
  198. 136 0000 42414141 .ascii "BAAAAAAAAAAAAAAA\000"
  199. 136 41414141
  200. 136 41414141
  201. 136 41414141
  202. 136 00
  203. 137 .section .text.get_pt,"ax",%progbits
  204. 138 .align 1
  205. 139 .global get_pt
  206. 140 .syntax unified
  207. 141 .thumb
  208. 142 .thumb_func
  209. 143 .fpu softvfp
  210. 145 get_pt:
  211. 146 .LVL10:
  212. 147 .LFB2:
  213. 21:simple-speck.c **** /**********************************
  214. 148 .loc 1 21 42 is_stmt 1 view -0
  215. 149 .cfi_startproc
  216. 150 @ args = 0, pretend = 0, frame = 16
  217. 151 @ frame_needed = 0, uses_anonymous_args = 0
  218. 24:simple-speck.c ****
  219. 152 .loc 1 24 2 view .LVU22
  220. 21:simple-speck.c **** /**********************************
  221. 153 .loc 1 21 42 is_stmt 0 view .LVU23
  222. 154 0000 7FB5 push {r0, r1, r2, r3, r4, r5, r6, lr}
  223. 155 .LCFI2:
  224. 156 .cfi_def_cfa_offset 32
  225. 157 .cfi_offset 4, -16
  226. 158 .cfi_offset 5, -12
  227. 159 .cfi_offset 6, -8
  228. 160 .cfi_offset 14, -4
  229. 24:simple-speck.c ****
  230. 161 .loc 1 24 2 view .LVU24
  231. 162 0002 FFF7FEFF bl trigger_high
  232. 163 .LVL11:
  233. 27:simple-speck.c ****
  234. 164 .loc 1 27 9 is_stmt 1 view .LVU25
  235. 27:simple-speck.c ****
  236. 165 .loc 1 27 26 is_stmt 0 view .LVU26
  237. 166 0006 0B4B ldr r3, .L11
  238. 167 0008 6C46 mov r4, sp
  239. 168 000a 03F11002 add r2, r3, #16
  240. 169 000e 2646 mov r6, r4
  241. 170 .L9:
  242. 171 0010 1868 ldr r0, [r3] @ unaligned
  243. 172 0012 5968 ldr r1, [r3, #4] @ unaligned
  244. 173 0014 2546 mov r5, r4
  245. 174 0016 03C5 stmia r5!, {r0, r1}
  246. 175 0018 0833 adds r3, r3, #8
  247. 176 001a 9342 cmp r3, r2
  248. 177 001c 2C46 mov r4, r5
  249. 178 001e F7D1 bne .L9
  250. 30:simple-speck.c **** /* End user-specific code here. *
  251. 179 .loc 1 30 2 is_stmt 1 view .LVU27
  252. 180 0020 FFF7FEFF bl trigger_low
  253. 181 .LVL12:
  254. 33:simple-speck.c ****
  255. 182 .loc 1 33 2 view .LVU28
  256. 183 0024 3246 mov r2, r6
  257. 184 0026 1021 movs r1, #16
  258. 185 0028 7220 movs r0, #114
  259. 186 002a FFF7FEFF bl simpleserial_put
  260. 187 .LVL13:
  261. 35:simple-speck.c **** }
  262. 188 .loc 1 35 2 view .LVU29
  263. 36:simple-speck.c ****
  264. 189 .loc 1 36 1 is_stmt 0 view .LVU30
  265. 190 002e 0020 movs r0, #0
  266. 191 0030 04B0 add sp, sp, #16
  267. 192 .LCFI3:
  268. 193 .cfi_def_cfa_offset 16
  269. 194 @ sp needed
  270. 195 0032 70BD pop {r4, r5, r6, pc}
  271. 196 .L12:
  272. 197 .align 2
  273. 198 .L11:
  274. 199 0034 00000000 .word .LC0
  275. 200 .cfi_endproc
  276. 201 .LFE2:
  277. 203 .section .text.encrypt_block,"ax",%progbits
  278. 204 .align 1
  279. 205 .global encrypt_block
  280. 206 .syntax unified
  281. 207 .thumb
  282. 208 .thumb_func
  283. 209 .fpu softvfp
  284. 211 encrypt_block:
  285. 212 .LVL14:
  286. 213 .LFB3:
  287. 39:simple-speck.c ****
  288. 214 .loc 1 39 49 is_stmt 1 view -0
  289. 215 .cfi_startproc
  290. 216 @ args = 0, pretend = 0, frame = 16
  291. 217 @ frame_needed = 0, uses_anonymous_args = 0
  292. 41:simple-speck.c ****
  293. 218 .loc 1 41 5 view .LVU32
  294. 39:simple-speck.c ****
  295. 219 .loc 1 39 49 is_stmt 0 view .LVU33
  296. 220 0000 30B5 push {r4, r5, lr}
  297. 221 .LCFI4:
  298. 222 .cfi_def_cfa_offset 12
  299. 223 .cfi_offset 4, -12
  300. 224 .cfi_offset 5, -8
  301. 225 .cfi_offset 14, -4
  302. 226 0002 85B0 sub sp, sp, #20
  303. 227 .LCFI5:
  304. 228 .cfi_def_cfa_offset 32
  305. 39:simple-speck.c ****
  306. 229 .loc 1 39 49 view .LVU34
  307. 230 0004 0446 mov r4, r0
  308. 41:simple-speck.c ****
  309. 231 .loc 1 41 5 view .LVU35
  310. 232 0006 FFF7FEFF bl trigger_high
  311. 233 .LVL15:
  312. 43:simple-speck.c **** memcpy(key, gkey, 8); // copy the globally set encryption key
  313. 234 .loc 1 43 5 is_stmt 1 view .LVU36
  314. 44:simple-speck.c **** u8 ct[4] = {0x00};
  315. 235 .loc 1 44 5 view .LVU37
  316. 236 000a 0B4A ldr r2, .L14
  317. 237 000c 1068 ldr r0, [r2] @ unaligned
  318. 238 000e 5168 ldr r1, [r2, #4] @ unaligned
  319. 239 0010 02AB add r3, sp, #8
  320. 240 0012 03C3 stmia r3!, {r0, r1}
  321. 45:simple-speck.c **** Speck3264_EncryptBlock(pt, key, ct); // the encryption happens here
  322. 241 .loc 1 45 5 view .LVU38
  323. 46:simple-speck.c ****
  324. 242 .loc 1 46 5 is_stmt 0 view .LVU39
  325. 243 0014 01AA add r2, sp, #4
  326. 244 0016 02A9 add r1, sp, #8
  327. 245 0018 2046 mov r0, r4
  328. 45:simple-speck.c **** Speck3264_EncryptBlock(pt, key, ct); // the encryption happens here
  329. 246 .loc 1 45 8 view .LVU40
  330. 247 001a 0025 movs r5, #0
  331. 248 001c 0195 str r5, [sp, #4]
  332. 46:simple-speck.c ****
  333. 249 .loc 1 46 5 is_stmt 1 view .LVU41
  334. 250 001e FFF7FEFF bl Speck3264_EncryptBlock
  335. 251 .LVL16:
  336. 48:simple-speck.c ****
  337. 252 .loc 1 48 5 view .LVU42
  338. 253 0022 FFF7FEFF bl trigger_low
  339. 254 .LVL17:
  340. 50:simple-speck.c **** return 0x00;
  341. 255 .loc 1 50 5 view .LVU43
  342. 256 0026 01AA add r2, sp, #4
  343. 257 0028 0421 movs r1, #4
  344. 258 002a 6320 movs r0, #99
  345. 259 002c FFF7FEFF bl simpleserial_put
  346. 260 .LVL18:
  347. 51:simple-speck.c **** }
  348. 261 .loc 1 51 5 view .LVU44
  349. 52:simple-speck.c ****
  350. 262 .loc 1 52 1 is_stmt 0 view .LVU45
  351. 263 0030 2846 mov r0, r5
  352. 264 0032 05B0 add sp, sp, #20
  353. 265 .LCFI6:
  354. 266 .cfi_def_cfa_offset 12
  355. 267 @ sp needed
  356. 268 0034 30BD pop {r4, r5, pc}
  357. 269 .LVL19:
  358. 270 .L15:
  359. 52:simple-speck.c ****
  360. 271 .loc 1 52 1 view .LVU46
  361. 272 0036 00BF .align 2
  362. 273 .L14:
  363. 274 0038 00000000 .word .LANCHOR0
  364. 275 .cfi_endproc
  365. 276 .LFE3:
  366. 278 .section .text.startup.main,"ax",%progbits
  367. 279 .align 1
  368. 280 .global main
  369. 281 .syntax unified
  370. 282 .thumb
  371. 283 .thumb_func
  372. 284 .fpu softvfp
  373. 286 main:
  374. 287 .LFB5:
  375. 60:simple-speck.c ****
  376. 61:simple-speck.c ****
  377. 62:simple-speck.c **** int main(void) {
  378. 288 .loc 1 62 16 is_stmt 1 view -0
  379. 289 .cfi_startproc
  380. 290 @ Volatile: function does not return.
  381. 291 @ args = 0, pretend = 0, frame = 0
  382. 292 @ frame_needed = 0, uses_anonymous_args = 0
  383. 63:simple-speck.c **** platform_init();
  384. 293 .loc 1 63 5 view .LVU48
  385. 62:simple-speck.c **** platform_init();
  386. 294 .loc 1 62 16 is_stmt 0 view .LVU49
  387. 295 0000 08B5 push {r3, lr}
  388. 296 .LCFI7:
  389. 297 .cfi_def_cfa_offset 8
  390. 298 .cfi_offset 3, -8
  391. 299 .cfi_offset 14, -4
  392. 300 .loc 1 63 5 view .LVU50
  393. 301 0002 FFF7FEFF bl platform_init
  394. 302 .LVL20:
  395. 64:simple-speck.c **** init_uart();
  396. 303 .loc 1 64 2 is_stmt 1 view .LVU51
  397. 304 0006 FFF7FEFF bl init_uart
  398. 305 .LVL21:
  399. 65:simple-speck.c **** trigger_setup();
  400. 306 .loc 1 65 2 view .LVU52
  401. 307 000a FFF7FEFF bl trigger_setup
  402. 308 .LVL22:
  403. 66:simple-speck.c ****
  404. 67:simple-speck.c **** /* Uncomment this to get a HELLO message for debug */
  405. 68:simple-speck.c **** /*
  406. 69:simple-speck.c **** putch('h');
  407. 70:simple-speck.c **** putch('e');
  408. 71:simple-speck.c **** putch('l');
  409. 72:simple-speck.c **** putch('l');
  410. 73:simple-speck.c **** putch('o');
  411. 74:simple-speck.c **** putch('\n');
  412. 75:simple-speck.c **** */
  413. 76:simple-speck.c ****
  414. 77:simple-speck.c **** simpleserial_init();
  415. 309 .loc 1 77 2 view .LVU53
  416. 310 000e FFF7FEFF bl simpleserial_init
  417. 311 .LVL23:
  418. 78:simple-speck.c **** simpleserial_addcmd('p', 16, get_pt);
  419. 312 .loc 1 78 2 view .LVU54
  420. 313 0012 0E4A ldr r2, .L18
  421. 314 0014 1021 movs r1, #16
  422. 315 0016 7020 movs r0, #112
  423. 316 0018 FFF7FEFF bl simpleserial_addcmd
  424. 317 .LVL24:
  425. 79:simple-speck.c **** simpleserial_addcmd('e', 4, encrypt_block);
  426. 318 .loc 1 79 2 view .LVU55
  427. 319 001c 0C4A ldr r2, .L18+4
  428. 320 001e 0421 movs r1, #4
  429. 321 0020 6520 movs r0, #101
  430. 322 0022 FFF7FEFF bl simpleserial_addcmd
  431. 323 .LVL25:
  432. 80:simple-speck.c **** simpleserial_addcmd('k', 4, get_key);
  433. 324 .loc 1 80 2 view .LVU56
  434. 325 0026 0B4A ldr r2, .L18+8
  435. 326 0028 0421 movs r1, #4
  436. 327 002a 6B20 movs r0, #107
  437. 328 002c FFF7FEFF bl simpleserial_addcmd
  438. 329 .LVL26:
  439. 81:simple-speck.c **** simpleserial_addcmd('s', 8, set_key);
  440. 330 .loc 1 81 2 view .LVU57
  441. 331 0030 094A ldr r2, .L18+12
  442. 332 0032 0821 movs r1, #8
  443. 333 0034 7320 movs r0, #115
  444. 334 0036 FFF7FEFF bl simpleserial_addcmd
  445. 335 .LVL27:
  446. 82:simple-speck.c **** simpleserial_addcmd('x', 0, reset);
  447. 336 .loc 1 82 2 view .LVU58
  448. 337 003a 084A ldr r2, .L18+16
  449. 338 003c 0021 movs r1, #0
  450. 339 003e 7820 movs r0, #120
  451. 340 0040 FFF7FEFF bl simpleserial_addcmd
  452. 341 .LVL28:
  453. 342 .L17:
  454. 83:simple-speck.c ****
  455. 84:simple-speck.c **** while(1)
  456. 343 .loc 1 84 2 discriminator 1 view .LVU59
  457. 85:simple-speck.c **** simpleserial_get();
  458. 344 .loc 1 85 3 discriminator 1 view .LVU60
  459. 345 0044 FFF7FEFF bl simpleserial_get
  460. 346 .LVL29:
  461. 84:simple-speck.c **** simpleserial_get();
  462. 347 .loc 1 84 7 discriminator 1 view .LVU61
  463. 348 0048 FCE7 b .L17
  464. 349 .L19:
  465. 350 004a 00BF .align 2
  466. 351 .L18:
  467. 352 004c 00000000 .word get_pt
  468. 353 0050 00000000 .word encrypt_block
  469. 354 0054 00000000 .word get_key
  470. 355 0058 00000000 .word set_key
  471. 356 005c 00000000 .word reset
  472. 357 .cfi_endproc
  473. 358 .LFE5:
  474. 360 .global gkey
  475. 361 .bss
  476. 362 .set .LANCHOR0,. + 0
  477. 365 gkey:
  478. 366 0000 00000000 .space 8
  479. 366 00000000
  480. 367 .text
  481. 368 .Letext0:
  482. 369 .file 2 "/usr/arm-none-eabi/include/machine/_default_types.h"
  483. 370 .file 3 "/usr/arm-none-eabi/include/sys/_stdint.h"
  484. 371 .file 4 "deps//simpleserial/simpleserial.h"
  485. 372 .file 5 "deps//hal/stm32f3/stm32f3_hal.h"
  486. 373 .file 6 "deps//hal/hal.h"
  487. 374 .file 7 "speck.h"
  488. 375 .file 8 "<built-in>"
  489. DEFINED SYMBOLS
  490. *ABS*:0000000000000000 simple-speck.c
  491. /tmp/ccP5AZso.s:16 .text.set_key:0000000000000000 $t
  492. /tmp/ccP5AZso.s:24 .text.set_key:0000000000000000 set_key
  493. /tmp/ccP5AZso.s:48 .text.set_key:0000000000000010 $d
  494. /tmp/ccP5AZso.s:53 .text.get_key:0000000000000000 $t
  495. /tmp/ccP5AZso.s:60 .text.get_key:0000000000000000 get_key
  496. /tmp/ccP5AZso.s:91 .text.get_key:0000000000000010 $d
  497. /tmp/ccP5AZso.s:96 .text.reset:0000000000000000 $t
  498. /tmp/ccP5AZso.s:103 .text.reset:0000000000000000 reset
  499. /tmp/ccP5AZso.s:138 .text.get_pt:0000000000000000 $t
  500. /tmp/ccP5AZso.s:145 .text.get_pt:0000000000000000 get_pt
  501. /tmp/ccP5AZso.s:199 .text.get_pt:0000000000000034 $d
  502. /tmp/ccP5AZso.s:204 .text.encrypt_block:0000000000000000 $t
  503. /tmp/ccP5AZso.s:211 .text.encrypt_block:0000000000000000 encrypt_block
  504. /tmp/ccP5AZso.s:274 .text.encrypt_block:0000000000000038 $d
  505. /tmp/ccP5AZso.s:279 .text.startup.main:0000000000000000 $t
  506. /tmp/ccP5AZso.s:286 .text.startup.main:0000000000000000 main
  507. /tmp/ccP5AZso.s:352 .text.startup.main:000000000000004c $d
  508. /tmp/ccP5AZso.s:365 .bss:0000000000000000 gkey
  509. /tmp/ccP5AZso.s:366 .bss:0000000000000000 $d
  510. UNDEFINED SYMBOLS
  511. simpleserial_put
  512. trigger_high
  513. trigger_low
  514. Speck3264_EncryptBlock
  515. platform_init
  516. init_uart
  517. trigger_setup
  518. simpleserial_init
  519. simpleserial_addcmd
  520. simpleserial_get