Skip to content
Snippets Groups Projects
bf_test.c 383 B
Newer Older
/* bf_test.c
 *
 * $Id$
 * Test the blow fish implementation. */

#include "blowfish.h"

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

Niels Möller's avatar
Niels Möller committed
int main (int argc UNUSED, char **argv UNUSED)
{
  if (bf_selftest())
    {
      fprintf(stderr, "Blowfish works.\n");
Niels Möller's avatar
Niels Möller committed
      return EXIT_SUCCESS;
    }
  else
    {
      fprintf(stderr, "ERROR: Blowfish failed.\n");
Niels Möller's avatar
Niels Möller committed
      return EXIT_FAILURE;