~ubuntu-branches/ubuntu/utopic/nettle/utopic

« back to all changes in this revision

Viewing changes to testsuite/blowfish-test.c

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-03-24 11:38:21 UTC
  • mto: (1.4.6) (3.1.11 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20130324113821-3rsmekqi09c93lnh
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

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