Functions | Variables

testDES.cpp File Reference

#include "crypto/crypto.h"
#include <iostream>
#include "common/wave_ex.h"
#include "perf/perf.h"
Include dependency graph for testDES.cpp:

Go to the source code of this file.

Functions

static void doTest (crypto::DESKey *key, const char *data, int minSize)
int main (int argc, const char *argv[])

Variables

static const test_t s_tests []

Function Documentation

static void doTest ( crypto::DESKey key,
const char *  data,
int  minSize 
) [static]

Definition at line 85 of file testDES.cpp.

int main ( int  argc,
const char *  argv[] 
)

Definition at line 119 of file testDES.cpp.


Variable Documentation

const test_t s_tests[] [static]
Initial value:
 {
        
        { "test",                                       0 },
        { "test",                                       1 },
        { "test",                                       4 },
        { "test",                                       100 },
        { "test",                                       -5 },
        { "Hello World!",                               0 },
        { "Hello World!",                               8 },
        { "Hello World!",                               12 },
        { "Hello World!",                               -4 },
        { "Hello World!",                               25 },
        { "",                                           0 },
        { "",                                           -1 },
        { "",                                           1 },
        { "",                                           16 },
        { "abcdefghijklmnopqrstuvwxyz",                 0 },
        { "ABCDEFGHIJKLMNOPQRSTUVWXYZ",                 0 },
        { "01234567890",                                0 },
        { ":",                                          0 },
        { ":",                                          -1 },
        { ":",                                          5 },

        
        { NULL, 0 }
}

Definition at line 48 of file testDES.cpp.