/* (c) Copyright 1987 Michael Goetz																				*/
/*																				*/
/*				File:		  	encry2										*/
/*				Returns:	  	int											*/
/*				Parameters:	int word - plain text					*/
/*								int ptr - key								*/
/*																				*/


#include "advm.h"
#include "encryp.h"


int encry2(word,ptr)
int word;
int ptr;

{
		/* call encryp for each of the two bytes */
	union {
		int int_word;
		char char_word[2];
		} temp;

	temp.int_word = word;
	temp.char_word[0] = encryp(temp.char_word[0],ptr);
	temp.char_word[1] = encryp(temp.char_word[1],ptr);
	return (temp.int_word);
}


