Examples
Example keys and passwords are public test material.
RC6-128/28/32: IETF vector encrypt
Input
000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3fExpected answer
4ed87c64baffecd4303ee6a79aafaef575b351c024272be70a70b4a392cfc157dba52d529a79e83845bf43d67545383aed3dbf4f0d23640e44cbf6cdaa034dcb4ed87c64baffecd4303ee6a79aafaef575b351c024272be70a70b4a392cfc157dba52d529a79e83845bf43d67545383aed3dbf4f0d23640e44cbf6cdaa034dcb
- Key
{"string":"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
128- Rounds
28
RC6-16/16/8: IETF vector encrypt
Input
0001020304050607Expected answer
2ff0b68eaeffad5b2ff0b68eaeffad5b
- Key
{"string":"0001020304050607","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
16- Rounds
16
RC6-24/4/0: IETF non-standard vector encrypt (w=24, empty key)
Input
000102030405060708090a0bExpected rejection
Message contains0177982579be2ee3303269b9- Key
{"string":"","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
24- Rounds
4
RC6-32/20/16: IETF vector encrypt (AES standard)
Input
000102030405060708090a0b0c0d0e0fExpected answer
3a96f9c7f6755cfe46f00e3dcd5d2a3c3a96f9c7f6755cfe46f00e3dcd5d2a3c
- Key
{"string":"000102030405060708090a0b0c0d0e0f","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
32- Rounds
20
RC6-32/20/24: 192-bit key encrypt
Input
000102030405060708090a0b0c0d0e0fExpected answer
a68a14ff1342262a2bbd21f7966615eba68a14ff1342262a2bbd21f7966615eb
- Key
{"string":"000102030405060708090a0b0c0d0e0f1011121314151617","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
32- Rounds
20
RC6-32/20/32: 256-bit key encrypt
Input
000102030405060708090a0b0c0d0e0fExpected answer
921c3ecd43d9426a90089334d67aea2e921c3ecd43d9426a90089334d67aea2e
- Key
{"string":"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
32- Rounds
20
RC6-64/24/24: IETF vector encrypt
Input
000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1fExpected answer
c002de050bd55e5d36864ab9853338e6dc4a1326c6bdaaeb1bc9e4fd67886617c002de050bd55e5d36864ab9853338e6dc4a1326c6bdaaeb1bc9e4fd67886617
- Key
{"string":"000102030405060708090a0b0c0d0e0f1011121314151617","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
64- Rounds
24
RC6-8/12/4: IETF vector encrypt
Input
00010203Expected answer
aefc4612aefc4612
- Key
{"string":"00010203","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
8- Rounds
12
RC6-80/4/12: IETF non-standard vector encrypt (w=80)
Input
000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324252627Expected answer
26d9d6128601d06dec3817d401f1c0ff715473543875da417c2116d1e87c919a49311b00b4e1796226d9d6128601d06dec3817d401f1c0ff715473543875da417c2116d1e87c919a49311b00b4e17962
- Key
{"string":"000102030405060708090a0b","option":"Hex"}- IV
{"string":"","option":"Hex"}- Mode
ECB- Input
Hex- Output
Hex- Padding
NO- Word Size
80- Rounds
4
RC6 is parameterised as RC6-w/r/b where w is word size in bits (any multiple of 8 from 8-256), r is the number of rounds (1-255), and b is the key length in bytes. The standard AES submission uses w=32, r=20. Common word sizes: 8, 16, 32 (standard), 64, 128. IV: The Initialisation Vector should be 4*w/8 bytes (e.g. 16 bytes for w=32). If not entered, it will default to null bytes. Padding: In CBC and ECB mode, the PKCS#7 padding scheme is used.
Format reference: RC6 Encrypt background and specification