Skip to content
Snippets Groups Projects
Forked from Nettle / nettle
3735 commits behind the upstream repository.
  • Niels Möller's avatar
    3f7c7bf2
    *** empty log message *** · 3f7c7bf2
    Niels Möller authored
    Rev: src/symmetric/arcfour.c:1.2
    Rev: src/symmetric/bf_test.c:1.2
    Rev: src/symmetric/desQuick.c:1.3
    Rev: src/symmetric/desdata.c:1.3
    Rev: src/symmetric/desinfo.h:1.2
    3f7c7bf2
    History
    *** empty log message ***
    Niels Möller authored
    Rev: src/symmetric/arcfour.c:1.2
    Rev: src/symmetric/bf_test.c:1.2
    Rev: src/symmetric/desQuick.c:1.3
    Rev: src/symmetric/desdata.c:1.3
    Rev: src/symmetric/desinfo.h:1.2
bf_test.c 383 B
/* 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;
    }
}