mirror of
https://codeberg.org/scip/twenty4.git
synced 2025-12-17 12:00:57 +01:00
fix pseudo rotateky() descr
This commit is contained in:
12
README.md
12
README.md
@@ -98,13 +98,15 @@ where:
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
func rotatekey(K, B)
|
func rotatekey(K, B)
|
||||||
[rotate K[32] array elementy 1 to the right]
|
PREV = K[31]
|
||||||
for N in 0..16:
|
for N in 0..31
|
||||||
K[N] = KBOX[K[N] xor B]
|
NEXT = K[N]
|
||||||
endfor
|
K[N] = PREV
|
||||||
|
PREV = NEXT
|
||||||
|
K[N] = KBOX[K[N] xor B]
|
||||||
|
done
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
where:
|
where:
|
||||||
|
|
||||||
K[17]: expanded key
|
K[17]: expanded key
|
||||||
|
|||||||
Reference in New Issue
Block a user