This is a list of test vectors for people who wish to make their own implementation of the Kiwi specification.


Plaintext  Ciphertext ASCII   Key
---------  ---------  ------- ------------
0000 0000  2A50 5650  qsvafva 00
AAAA 5555  CE05 58F7  xhwkahp 00
5555 AAAA  6F5F 795E  6k66vxb 00
FFFF FFFF  A5AB 012F  pjaw2so 00
0123 4567  2133 D5B3  tnvhtqy 00
89AB CDEF  1189 8434  ubbtyiu 00
0000 0000  46C6 8FC5  f6dnmdb 0011
AAAA 5555  FB80 AB3D  5zkby5p 0011
5555 AAAA  6BA2 D0BC  4fuf2vb 0011
FFFF FFFF  68A0 86FB  3xbbkun 0011
0123 4567  8212 1E11  rqhebb2 0011
89AB CDEF  8BBA 772B  lz5u3fw 0011
0000 0000  F5E2 20CD  ngie62d 001122
AAAA 5555  C4EB A54F  pkjxocp 001122
5555 AAAA  F373 4D85  fmtgxzd 001122
FFFF FFFF  B553 2692  sujgv2o 001122
0123 4567  997E 1F4D  n2h4xm2 001122
89AB CDEF  DE32 E595  vmzfdpx 001122
0000 0000  708F F462  cd57iyb 00112233
AAAA 5555  6915 2A3E  6rkkrun 00112233
5555 AAAA  D097 6AC0  aw2ojid 00112233
FFFF FFFF  CE1A F11A  2i4vbhp 00112233
0123 4567  EB1B EB1F  7y2xrv3 00112233
89AB CDEF  1AEA BAEF  pxovonu 00112233
0000 0000  7D94 ED92  sm3jz6b 0011223344
AAAA 5555  B1D3 2996  wmkg5yo 0011223344
5555 AAAA  B831 E0A1  bfydd4c 0011223344
FFFF FFFF  D2CA 56FC  4xvumjp 0011223344
0123 4567  7F70 35A9  jnnax7z 0011223344
89AB CDEF  8E49 646D  ndzsehw 0011223344
0000 0000  09B3 7E08  iq7g3ea 001122334455
AAAA 5555  68B0 4648  isralun 001122334455
5555 AAAA  A08C C070  qdqziqc 001122334455
FFFF FFFF  2B7E 7E17  xq74xvm 001122334455
0123 4567  4A8D E633  trz3ifz 001122334455
89AB CDEF  B606 E678  ytzna3w 001122334455
0000 0000  5C87 1343  d2eoiob 00112233445566
AAAA 5555  A776 CE8F  putnxto 00112233445566
5555 AAAA  C8CD BA0B  lqo3med 00112233445566
FFFF FFFF  AD72 FC9C  4e7fxwo 00112233445566
0123 4567  060E 3221  brm4ady 00112233445566
89AB CDEF  F062 5708  iyvegyx 00112233445566
0000 0000  3510 6F82  c43ar2a 0011223344556677
AAAA 5555  6A5C 7FB6  w57yfvn 0011223344556677
5555 AAAA  C5F0 8017  xaab7cd 0011223344556677
FFFF FFFF  D864 C8F6  whsjgmp 0011223344556677
0123 4567  617A C5E8  iprvxqz 0011223344556677
89AB CDEF  3A44 1EB0  qvhie5u 0011223344556677
0000 0000  A6E3 898F  pmchotc 88
AAAA 5555  85DE 617F  7ly45co 88
5555 AAAA  8001 B4F7  xhndaac 88
FFFF FFFF  CCA5 1C7D  5dhkkgp 88
0123 4567  4AD9 9338  yzetnfz 88
89AB CDEF  FD98 6DF8  yp3qz6x 88
0000 0000  49AB 0302  cyaw2eb 8899
AAAA 5555  A9F9 DBB0  q5wt7uo 8899
5555 AAAA  B50C D520  ajvzq2c 8899
FFFF FFFF  41AC A47C  4djz2an 8899
0123 4567  01D4 8980  amcj5ay 8899
89AB CDEF  6D96 916F  plenzwv 8899
0000 0000  CC74 3695  vunihgd 8899AA
AAAA 5555  9928 28E2  chkqsmo 8899AA
5555 AAAA  2423 A1C7  hoihcsa 8899AA
FFFF FFFF  1782 0783  d4beylm 8899AA
0123 4567  E6A6 1118  yiemkt3 8899AA
89AB CDEF  83F1 882A  kbcd7bw 8899AA
0000 0000  C7CF 3DB3  tnp64dd 8899AABB
AAAA 5555  1AF2 90F7  xhefpnm 8899AABB
5555 AAAA  0B7E DE1D  5qx5xfa 8899AABB
FFFF FFFF  0A7E 44A6  gfr4hfm 8899AABB
0123 4567  2045 51E7  hpukeqy 8899AABB
89AB CDEF  CD20 7BB6  w56asgx 8899AABB
0000 0000  3BCA DC4B  lcxv45a 8899AABBCC
AAAA 5555  9EC2 2539  zjjempo 8899AABBCC
5555 AAAA  3DD5 31A7  hnmk56a 8899AABBCC
FFFF FFFF  8A0C 4296  wuqyafo 8899AABBCC
0123 4567  6C02 F86F  pd6fawz 8899AABBCC
89AB CDEF  6D5A 4388  i4quvwv 8899AABBCC
0000 0000  1E18 96EA  kxfrbpa 8899AABBCCDD
AAAA 5555  B0C6 A2A8  ivinmyo 8899AABBCCDD
5555 AAAA  8BAF FC0B  la772fc 8899AABBCCDD
FFFF FFFF  0880 A939  zjkbiem 8899AABBCCDD
0123 4567  2A9F 068C  mub6jvy 8899AABBCCDD
89AB CDEF  223D A87D  5dk3dru 8899AABBCCDD
0000 0000  5E7C DFE6  g7xzhpb 8899AABBCCDDEE
AAAA 5555  0F8A E321  bzyvyhm 8899AABBCCDDEE
5555 AAAA  3655 4ECA  kwtkf3a 8899AABBCCDDEE
FFFF FFFF  1269 5A4B  lswsgjm 8899AABBCCDDEE
0123 4567  5C92 13EF  p7eejoz 8899AABBCCDDEE
89AB CDEF  446B 2DFC  4plwgcv 8899AABBCCDDEE
0000 0000  650A 28D1  rgkuqsb 8899AABBCCDDEEFF
AAAA 5555  65B7 E371  r3yp3sn 8899AABBCCDDEEFF
5555 AAAA  E14E 8FE8  i7d5uqd 8899AABBCCDDEEFF
FFFF FFFF  E15D 03CD  n6a2vqp 8899AABBCCDDEEFF
0123 4567  8DCC 8EE6  gxdz4g2 8899AABBCCDDEEFF
89AB CDEF  6BB4 42AA  kvqi3vv 8899AABBCCDDEEFF
1234 5678  A108 547F  7dvqqqs 102030405060708090A0010203040506
9ABC DEF0  E9B3 F9AF  pn6h3u7 102030405060708090A0010203040506
0000 0000  1AA9 189A  2egskna 102030405060708090A0010203040506
FFFF FFFF  B108 9CD5  vghrqyo 102030405060708090A0010203040506
1234 5678  A7FE D354  u2u57ts 102030405060708090A00102030405060708090A
9ABC DEF0  E81A 6356  w2yubu7 102030405060708090A00102030405060708090A
0000 0000  BF1D 096C  mlc2r7c 102030405060708090A00102030405060708090A
FFFF FFFF  430A D894  uewvqbn 102030405060708090A00102030405060708090A
1234 5678  9C3D A86D  ndk3dos 58
9ABC DEF0  21CA D7DB  36vv4q4 58
0000 0000  217A 015D  5kauxqa 58
FFFF FFFF  225C 70CA  kg4yfrm 58
8000 0000  F1B9 D2FF  7xut3yl 58
9000 0000  13CC B68C  munz4ja 58
A000 0000  51F9 0A77  xtcs7iz 58
C000 0000  0D98 E7E4  e7zrzgm 58
CFFF FFFF  D121 89A4  encdsix 58

The key "8899AABBCCDDEEFF" generates the following set of S-boxes:

S-BOX 1:
0xa802, 0x185e, 0x660a, 0x9327, 
0x469e, 0x005c, 0xa388, 0x24a6, 
0xca04, 0x40f9, 0x69cb, 0xa41e, 
0x0754, 0x4151, 0xb279, 0xf36d

S-BOX 2:
0x4d4f, 0xf8cb, 0xeed4, 0xb6f6, 
0x286b, 0x212b, 0x64a5, 0x5e12, 
0x02ca, 0x2427, 0x5260, 0x86bd, 
0x7084, 0xd4f1, 0x74b9, 0x5afe

S-BOX 3: 
0x556f, 0x5319, 0x693b, 0x7f58, 
0xb502, 0x3373, 0xb0c6, 0xec4c, 
0xedfb, 0x302d, 0xf45f, 0x7f0d, 
0x8d15, 0x001c, 0x7e38, 0xcee3

S-BOX 4: 
0xbc9e, 0x6af3, 0xf825, 0xa8f5, 
0x35a0, 0xa169, 0x72dd, 0xd45f, 
0x6135, 0xc805, 0x9cd7, 0xb53e, 
0x44ef, 0x131e, 0x8b96, 0x2abf

The key "102030405060708090A0010203040506" generates the following set 
of S-boxes:

S-BOX 1:

0xa206, 0x2c28, 0x4fd7, 0x8f1e, 
0x174c, 0x9c46, 0x9343, 0x9afb, 
0x63c3, 0xdc4f, 0x3d2a, 0xee48, 
0xc6e1, 0x0cf0, 0xb023, 0x2025

S-BOX 2:

0xd3c8, 0x5926, 0x18a6, 0x65d8, 
0xa227, 0x653c, 0xc894, 0xfd1f, 
0x9deb, 0x3b0d, 0xe592, 0x2eba, 
0xc6d7, 0x5f96, 0xfe0a, 0x71d8

S-BOX 3:

0x5328, 0x569c, 0x067e, 0x1cdc, 
0x1b3e, 0xd966, 0x489e, 0x3a4f, 
0x2296, 0x54e2, 0x78a2, 0xe5b5, 
0xf88c, 0x9ecd, 0x004f, 0x3fa4

S-BOX 4:

0x7cba, 0x4560, 0x44c2, 0xf214, 
0xaefd, 0x7b97, 0xb2f4, 0x0d3a, 
0x3a76, 0x90bd, 0x3968, 0xb780, 
0x6436, 0xbc7a, 0xa4be, 0xc8bf