Skip to content

Commit

Permalink
line up
Browse files Browse the repository at this point in the history
  • Loading branch information
j-christensen1 committed Jan 30, 2025
1 parent 3042c01 commit 434dc38
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Primitive/Symmetric/Cipher/Block/Simon/Specification.cry
Original file line number Diff line number Diff line change
Expand Up @@ -337,17 +337,17 @@ private
keySchedule : [m][n] -> [T][n]
keySchedule k0
| m == 2 => k where
k = k0 # [
c ^ zji ^ (k @ i) ^ IS_Inv (S_Inv 3 (k @ (i+1)))
| i <- [0..T-m-1]
| zji <- zj
]
k = k0 # [
c ^ zji ^ (k @ i) ^ IS_Inv (S_Inv 3 (k @ (i+1)))
| i <- [0..T-m-1]
| zji <- zj
]
| m == 3 => k where
k = k0 # [
c ^ zji ^ (k@i) ^ IS_Inv (S_Inv 3 (k@(i+2)))
| i <- [0..T-m-1]
| zji <- zj
]
k = k0 # [
c ^ zji ^ (k@i) ^ IS_Inv (S_Inv 3 (k@(i+2)))
| i <- [0..T-m-1]
| zji <- zj
]
| m == 4 => k where
k = k0 # [
c ^ zji ^ (k@i) ^ IS_Inv (S_Inv 3 (k@(i+3)) ^ (k@(i+1)))
Expand Down

0 comments on commit 434dc38

Please sign in to comment.