File: main.c

package info (click to toggle)
twofish 0.3-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 272 kB
  • ctags: 176
  • sloc: ansic: 1,177; xml: 237; makefile: 67
file content (29 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Simple file to test the Twofish libary code.
 * Copyright (c) 2002 by Niels Ferguson.
 *
 * The author hereby grants a perpetual license to everybody to
 * use this code for any purpose as long as the copyright message is included
 * in the source code of this or any derived work.
 * 
 */

#include <stdio.h>
#include "twofish.h"

int main()
    {
    puts( "Twofish library code test\nCopyright (c) 2002 by Niels Ferguson" );

    /*
     * The initialise function runs all the tests that are needed. 
     * Note: the default Twofish_fatal routine just hangs the CPU, so if this
     * program does not finish you probably didn't do the platform fixes 
     * correctly
     */
    Twofish_initialise();

    puts( "Done" );

    return 0;
    }