Skip to content

Commit 333d571

Browse files
committed
Remove CK_JITTER from aes.S, as this is now handled in the C code
1 parent e3fcac7 commit 333d571

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

enc_bootloader/aes.S

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -352,23 +352,6 @@ gen_rand_sha_nonpres:
352352
strb r3,[r2] @ save updated SUM register offset in bottom byte of rstate_sha[]
353353
bx r14
354354
1:
355-
.if CK_JITTER
356-
ldr r3,=CLOCKS_BASE+CLOCKS_CLK_REF_CTRL_OFFSET
357-
ldr r1,[r3,#0]
358-
push {r1}
359-
bic r1,r1,#3
360-
str r1,[r3,#0] @ switch ref_clk to ROSC
361-
ldr r1,[r3,#CLOCKS_CLK_SYS_CTRL_OFFSET-CLOCKS_CLK_REF_CTRL_OFFSET]
362-
push {r1}
363-
bic r1,r1,#3
364-
str r1,[r3,#CLOCKS_CLK_SYS_CTRL_OFFSET-CLOCKS_CLK_REF_CTRL_OFFSET] @ switch sys_clk to ref_clk
365-
@ run for a couple of cycles off ROSC (ca. 11MHz rather than 150MHz) to jitter the timing
366-
@ could also insert a random delay here
367-
pop {r1}
368-
str r1,[r3,#CLOCKS_CLK_SYS_CTRL_OFFSET-CLOCKS_CLK_REF_CTRL_OFFSET] @ switch sys_clk back to clksrc_clk_sys_aux
369-
pop {r1}
370-
str r1,[r3,#0]
371-
.endif
372355
movs r3,#SHA256_SUM6_OFFSET+1
373356
strb r3,[r2] @ reset word counter: the +1 is compensated for later
374357
movw r1,#(1<<SHA256_CSR_BSWAP_LSB)+(1<<SHA256_CSR_START_LSB)

enc_bootloader/enc_bootloader.elf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)