[Title] Add packaging/nettle.spec to build nettle on OBS system
[external/nettle.git] / testsuite / des3-test.c
1 #include "testutils.h"
2 #include "nettle-internal.h"
3 #include "des.h"
4
5 int
6 test_main(void)
7 {
8   /* Intermediate values:
9    *   After first DES encryption:  "cd ea 2a 20 c2 e0 9e 48"
10    *   After second DES decryption: "69 52 6e 95 8b ea 49 bd"
11    */
12
13   test_cipher(&nettle_des3,
14               HL("3e 0b 10 b0 5d 49 c2 54"
15                  "6b 46 e0 75 8a 91 61 85"
16                  "cb 04 07 d3 20 16 cb a2"),
17               DES_BLOCK_SIZE, "Now is t",
18               H("0a 5d b5 2d 85 74 d1 c9"));
19
20   SUCCESS();
21 }