/*--
	global.h

	Global define and value

--*/


#ifndef __GLOBAL__
#define __GLOBAL__


#include <windows.h>
#include <wincrypt.h>
#include <Stdio.h> 
#include <conio.h>
#include <stdlib.h>
#include <time.h>
#include <malloc.h>


typedef unsigned long ULONG;


/*	test macro:	*/
#define EXIT						0
#define DES_TEST_CHOISE				1
#define DERIVEDESKEY_TEST_CHOISE	2
#define RSA_CHOISE					3 
#define KCS_LIST_CHOISE				4
#define KCS_ADD_CHOISE				5
#define KCS_REMOVE_CHOISE			6
#define LISTCERTIFICATE_TESTCHOISE	7


/*	TEST ITEM:	*/
#define TEST_DES_ALG		CALG_DES
#define ACTIVE_LIST			1
#define ACTIVE_ADD			2
#define ACTIVE_REMOVE		3

/*	return value	*/
#define CSP_OK		0
#define CSP_FAILED	1


/*	Token version	*/
#define UNITOKEN_1	1
#define TOKEN_VERSION	UNITOKEN_1


/*	CSP name	*/	
#define CSP_NAME				"UniMate DRIVE CSP v2.0"


#define CONTAINER "My Key Container"


void ShowData(unsigned char * pData, unsigned long ulDataLen);
void ShowTitle(void);


#endif // __GLOBAL__

// -- eof