/***********************************************************
 * crypt                                                   *
 * simple cryptographic library                            *
 * Verteilte Systeme II Kapitel 11                         *
 ***********************************************************
 * 1999 by Frank Kargl (frank.kargl@informatik.uni-ulm.de) *
 ***********************************************************/

/***********************************************************
 *                                                         *
 * Function:                                               *
 * void encrypt(char key, char* plain, char* cipher)       *
 * encrypts a plaintext                                    *
 * Parameters:                                             * 
 *  key - the secret key                                   *
 *  plain - plain text                                     *
 *  cipher - buffer for cipher text                        *
 * Return:                                                 *
 *  -                                                      *
 *                                                         *
 ***********************************************************/

extern void encrypt(char key, char* plain, char* cipher);

/***********************************************************
 *                                                         *
 * Function:                                               *
 * void decrypt(char key, char* cipher, char* plain)       *
 * decrypts a plaintext                                    *
 * Parameters:                                             * 
 *  key - the secret key                                   *
 *  cipher - cipher text                                   *
 *  plain - buffer for cipher text                         *
 * Return:                                                 *
 *  -                                                      *
 *                                                         *
 ***********************************************************/

extern void decrypt(char key, char* cipher, char* plain);
