/* enigma.h include file for enigma.c */
/* markus@mhoenicka.de 6-22-01 */
/* $Id: enigma.h,v 1.4 2002/12/13 20:34:39 mhoenicka Exp $ */

/*
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, see <http://www.gnu.org/licenses/>

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/


struct wheel_pos {
  int rotor[3]; /* maps available rotors (0,1,2) to positions (0,1,2) */
  int pos[3]; /* starting positions for rotors in positions (0,1,2) */
};

int enigma_encrypt(char* passwd, char* scrambled_passwd, char* wheelpos);
void randomize_wheels(char* wheelpos);
void numberize_passwd(char* numberpasswd, char* passwd);
void denumberize_passwd(char* passwd, char* numberpasswd);





