]> git.cryptolib.org Git - avr-crypto-lib.git/blob - host/threefish_helper.rb
adjusting make-system for AEAD-Ciphers
[avr-crypto-lib.git] / host / threefish_helper.rb
1 #!/usr/bin/ruby
2 #
3
4 (0..19).each { |s|
5   printf("0x%s%s, ", ((s+0)%5).to_s,((s+1)%5).to_s)
6   printf("0x%s%s, ", ((s+2)%5).to_s,((s+3)%5).to_s)
7 }
8
9 puts("\n or (5)\n")
10 (0..19+3).each { |s|
11   printf("0x%02x, ", ((s%5)*8))
12 }
13
14 puts("\n or (9)\n")
15 (0..19+7).each { |s|
16   printf("0x%02x, ", ((s%9)*8))
17 }
18
19 puts("\n or (17)\n")
20 (0..21+15).each { |s|
21   printf("0x%02x, ", ((s%17)*8))
22 }
23
24
25 puts("\n (3)\n")
26 (0..24).each { |s|
27   printf("0x%02x, ", ((s%3)*8))
28 }