~ubuntu-branches/ubuntu/vivid/nettle/vivid-proposed

« back to all changes in this revision

Viewing changes to testsuite/des3-test.c

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-03-24 11:38:21 UTC
  • mfrom: (1.5.2)
  • mto: (8.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130324113821-47kc1q7ojsxmuevv
Tags: 2.6-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#include "nettle-internal.h"
3
3
#include "des.h"
4
4
 
5
 
int
 
5
void
6
6
test_main(void)
7
7
{
8
8
  /* Intermediate values:
11
11
   */
12
12
 
13
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();
 
14
              SHEX("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
              SDATA("Now is t"),
 
18
              SHEX("0a 5d b5 2d 85 74 d1 c9"));
21
19
}