Skip to content
Snippets Groups Projects
bf_test.c 383 B
Newer Older
  • Learn to ignore specific revisions
  • /* 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;