~ubuntu-branches/ubuntu/wily/nettle/wily-proposed

« back to all changes in this revision

Viewing changes to testsuite/blowfish-test.c

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-04 19:50:28 UTC
  • mfrom: (1.4.6) (3.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20130504195028-fp6c9fw1tsm5scwa
Tags: 2.7-1
* New upstream release (Closes: #706081).
* Include watch file improvements from Bart Martens <bartm@debian.org>
  via the QA system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#include "nettle-internal.h"
3
3
#include "blowfish.h"
4
4
 
5
 
int
 
5
void
6
6
test_main(void)
7
7
{
8
8
  /* 208 bit key. Test from GNUPG. */
9
9
  test_cipher(&nettle_blowfish128,
10
 
              26, "abcdefghijklmnopqrstuvwxyz",
11
 
              BLOWFISH_BLOCK_SIZE, "BLOWFISH",
12
 
              H("32 4E D0 FE F4 13 A2 03"));
13
 
 
14
 
  SUCCESS();
 
10
              SDATA("abcdefghijklmnopqrstuvwxyz"),
 
11
              SDATA("BLOWFISH"),
 
12
              SHEX("32 4E D0 FE F4 13 A2 03"));
15
13
}
16
14
/* FIXME: All values below are bogus. */
17
15
#if 0