t_secret_squirrel.cpp File Reference

#include <basis/chaos.h>
#include <basis/guards.h>
#include <basis/istring.h>
#include <crypto/secret_string.h>
#include <data_struct/static_memory_gremlin.h>
#include <loggers/file_logger.h>
#include <opsystem/filename.h>
#include <opsystem/path_configuration.h>
#include <textual/byte_format.h>
#include <textual/string_manipulation.h>

Include dependency graph for t_secret_squirrel.cpp:

Go to the source code of this file.

Defines

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

Functions

istring get_base (const istring &to_strip)
 SAFE_STATIC (istring_object, APP_NAME,(get_base(portable::application_name()))) int main(int formal(argc)
char * formal (argv)[])

Variables

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


Define Documentation

#define GROUP   "test group 3: random keys"

#define GROUP   "test group 2: longer key"

#define GROUP   "test group 1: specific key"

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

Definition at line 29 of file t_secret_squirrel.cpp.


Function Documentation

char* formal ( argv   ) 

Definition at line 55 of file t_secret_squirrel.cpp.

References guards::alert_message(), deadly_error, secret_string::decrypt_string(), secret_string::encrypt_string(), GROUP, chaos::inclusive(), array< contents >::length(), LOG, string_manipulation::make_random_name(), array< contents >::observe(), istring::s(), SET_DEFAULT_COMBO_LOGGER, byte_format::string_to_bytes(), TEST_ITERATIONS, TEST_KEY_1, and TEST_KEY_2.

istring get_base ( const istring to_strip  ) 

Definition at line 46 of file t_secret_squirrel.cpp.

References filename::basename(), and filename::raw().

SAFE_STATIC ( istring_object  ,
APP_NAME  ,
(get_base(portable::application_name()))   
)


Variable Documentation

HOOPLE_STARTUP_CODE

Definition at line 27 of file t_secret_squirrel.cpp.

const int TEST_ITERATIONS = 100000

Definition at line 31 of file t_secret_squirrel.cpp.

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 34 of file t_secret_squirrel.cpp.

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 39 of file t_secret_squirrel.cpp.


Generated on Fri Nov 21 04:31:31 2008 for HOOPLE Libraries by  doxygen 1.5.1