dcrypt.blockcipher.rc6

Members

Structs

RC6
struct RC6

An RC6 engine.

Examples

test the RC6 block cipher engine

1 // 160, 224 bit keys commented out
2 string[] test_keys = [
3 	x"01010101010101010101010101010101",
4 	//x"0101010101010101010101010101010101010101",
5 	x"010101010101010101010101010101010101010101010101",
6 	//x"01010101010101010101010101010101010101010101010101010101",
7 	x"0101010101010101010101010101010101010101010101010101010101010101",
8 ];
9 string[] test_plaintexts = [
10 	x"01010101010101010101010101010101",
11 	//x"01010101010101010101010101010101",
12 	x"01010101010101010101010101010101",
13 	//x"01010101010101010101010101010101",
14 	x"01010101010101010101010101010101",
15 ];
16 string[] test_ciphertexts = [
17 	x"efb2c7dd69614683dab0bc607036c425",
18 	//x"ff59d24608b42833e9292f4be0a239a5",
19 	x"142aa9f25dd64a8a6444304735aa6641",
20 	//x"26e64b9c2bb63e93494d0d803994bdfd",
21 	x"41ecee06dda0946c816f528a767c0ef6",
22 ];
23 
24 RC6Engine t = new RC6Engine();
25 blockCipherTest(t, test_keys, test_plaintexts, test_ciphertexts);

Meta