
/*     Includes from Rsaref
 */

/* Copyright (C) 1991-2 RSA Laboratories, a division of RSA Data
   Security, Inc. All rights reserved.
 */

/* GLOBAL.H - RSAREF types and constants
 */
 
#ifndef PROTOTYPES
#define PROTOTYPES 0
#endif

/* POINTER defines a generic pointer type */
typedef unsigned char *POINTER;

/* UINT2 defines a two byte word */
typedef unsigned short int UINT2;

/* UINT4 defines a four byte word */
#ifdef __alpha
typedef unsigned int UINT4;
#else
typedef unsigned long int UINT4;
#endif

#if PROTOTYPES
#define PROTO_LIST(list) list
#else
#define PROTO_LIST(list) ()
#endif

/* Error codes.
 */
#define RE_LEN 0x0406

void R_memset PROTO_LIST ((POINTER, int, unsigned int));
void R_memcpy PROTO_LIST ((POINTER, POINTER, unsigned int));
int R_memcmp PROTO_LIST ((POINTER, POINTER, unsigned int));


/* DES.H - header file for DESC.C
 */

#define NROUNDS 3                                   /* modified */
typedef struct {
  unsigned char subkeyBit[NROUNDS][48];             /* subkeys */
  int encrypt;                                      /* encrypt flag */
} DES_SHORT_CTX;

void DES_SHORTInit PROTO_LIST 
  ((DES_SHORT_CTX *, unsigned char *, unsigned char *, int));
int DES_SHORTUpdate PROTO_LIST
  ((DES_SHORT_CTX *, unsigned char *, unsigned char *, unsigned int));
void DES_CBCFinal PROTO_LIST ((DES_SHORT_CTX *));

/*
     My code, burt rosenberg (c) 1995
 */

#define DEBUG 0
#define ASCIIPAD 0xFF
#define ENCRYPT 1
#define DECRYPT 0
#define APPLY 2
#define HIDDENKEY "ABCD7890123456EF"

