]>
Commit | Line | Data |
---|---|---|
e1101d59 AS |
1 | /* |
2 | * Copyright (C) 2009 Andreas Steffen | |
19ef2aec TB |
3 | * |
4 | * Copyright (C) secunet Security Networks AG | |
e1101d59 AS |
5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation; either version 2 of the Licenseor (at your | |
9 | * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
10 | * | |
11 | * This program is distributed in the hope that it will be usefulbut | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | * for more details. | |
15 | */ | |
16 | ||
17 | #include <crypto/crypto_tester.h> | |
18 | ||
19 | /** | |
20 | * All testvectors from https://www.cosic.esat.kuleuven.be/nessie/testvectors/ | |
21 | */ | |
22 | ||
23 | /** | |
24 | * RC5 128 bit: set 8, vector #0 | |
25 | */ | |
26 | crypter_test_vector_t rc5_1 = { | |
27 | .alg = ENCR_RC5, .key_size = 16, .len = 8, | |
28 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", | |
29 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", | |
30 | .plain = "\x96\x95\x0D\xDA\x65\x4A\x3D\x62", | |
31 | .cipher = "\x00\x11\x22\x33\x44\x55\x66\x77" | |
32 | }; | |
33 | ||
34 | /** | |
35 | * RC5 128 bit: set 8, vector #1 | |
36 | */ | |
37 | crypter_test_vector_t rc5_2 = { | |
38 | .alg = ENCR_RC5, .key_size = 16, .len = 8, | |
39 | .key = "\x2B\xD6\x45\x9F\x82\xC5\xB3\x00\x95\x2C\x49\x10\x48\x81\xFF\x48", | |
40 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", | |
41 | .plain = "\x63\x8B\x3A\x5E\xF7\x2B\x66\x3F", | |
42 | .cipher = "\xEA\x02\x47\x14\xAD\x5C\x4D\x84" | |
43 | }; | |
44 | ||
45 |