t_ice_key.cpp File Reference

#include <basis/byte_array.h>
#include <basis/chaos.h>
#include <basis/function.h>
#include <basis/guards.h>
#include <basis/istring.h>
#include <crypto/ice_key.h>
#include <loggers/file_logger.h>
#include <opsystem/path_configuration.h>
#include <data_struct/static_memory_gremlin.h>
#include <textual/byte_format.h>

Include dependency graph for t_ice_key.cpp:

Go to the source code of this file.

Defines

#define LOG(s)   program_wide_logger().log(s)
#define PROGRAM   "ice_key tester"
#define GROUP   "test group 1: specific key"
#define GROUP   "test group 2: longer key"
#define GROUP   "test group 3: random keys"

Functions

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

Variables

 HOOPLE_STARTUP_CODE
byte TEST_KEY_1 []
byte TEST_KEY_2 []
const int TEST_ITERATIONS = 8


Define Documentation

#define GROUP   "test group 3: random keys"

#define GROUP   "test group 2: longer key"

#define GROUP   "test group 1: specific key"

Referenced by formal(), and main().

#define LOG (  )     program_wide_logger().log(s)

Definition at line 28 of file t_ice_key.cpp.

#define PROGRAM   "ice_key tester"

Definition at line 43 of file t_ice_key.cpp.

Referenced by main().


Function Documentation

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

Definition at line 47 of file t_ice_key.cpp.

References guards::alert_message(), deadly_error, ice_key::decrypt(), ice_key::encrypt(), GROUP, chaos::inclusive(), array< contents >::length(), istring::length(), LOG, array< contents >::observe(), PROGRAM, istring::s(), ice_key::set(), SET_DEFAULT_COMBO_LOGGER, TEST_ITERATIONS, TEST_KEY_1, TEST_KEY_2, and byte_format::text_dump().


Variable Documentation

HOOPLE_STARTUP_CODE

Definition at line 26 of file t_ice_key.cpp.

const int TEST_ITERATIONS = 8

Definition at line 45 of file t_ice_key.cpp.

Referenced by formal(), and main().

byte TEST_KEY_1[]

Initial value:

 {
  0x28, 0x94, 0x32, 0x99, 0xFE, 0x2B, 0x9F, 0x75,
  0x47, 0x26, 0xC8, 0x37, 0xED, 0x59, 0x8E, 0x1B
}

Definition at line 31 of file t_ice_key.cpp.

Referenced by formal(), and main().

byte TEST_KEY_2[]

Initial value:

 {
  0x92, 0x18, 0x2C, 0xF8, 0xCE, 0xEE, 0x34, 0xD0,
  0x91, 0x23, 0x85, 0x5C, 0xBB, 0x7A, 0x98, 0x85,
  0x12, 0x02, 0xF0, 0xE8, 0x14, 0x83, 0x9E, 0x3D,
  0x38, 0x23, 0xB0, 0x9D, 0x7D, 0x3D, 0x92, 0x94
}

Definition at line 36 of file t_ice_key.cpp.

Referenced by formal(), and main().


Generated on Fri Nov 28 04:30:27 2008 for HOOPLE Libraries by  doxygen 1.5.1