summaryrefslogtreecommitdiff
path: root/bf_test.c
blob: 4b1261cc5cd1ebbfe616015bc1b348f901453469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* bf_test.c
 *
 * $Id$
 * Test the blow fish implementation. */

#include "blowfish.h"

#include <stdio.h>
#include <stdlib.h>

int main (int argc UNUSED, char **argv UNUSED)
{
  if (bf_selftest())
    {
      fprintf(stderr, "Blowfish works.\n");
      return EXIT_SUCCESS;
    }
  else
    {
      fprintf(stderr, "ERROR: Blowfish failed.\n");
      return EXIT_FAILURE;
    }
}