/* -*-c-*-
*
- * $Id: icrypt.c,v 1.1 1997/07/21 13:47:49 mdw Exp $
+ * $Id: icrypt.c,v 1.2 1997/08/04 10:24:22 mdw Exp $
*
* Higher level IDEA encryption
*
* (c) 1997 Mark Wooding
*/
-/*----- Licencing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------*
*
* This file is part of `become'
*
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with `become'; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * along with `become'; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*----- Revision history --------------------------------------------------*
*
* $Log: icrypt.c,v $
- * Revision 1.1 1997/07/21 13:47:49 mdw
+ * Revision 1.2 1997/08/04 10:24:22 mdw
+ * Sources placed under CVS control.
+ *
+ * Revision 1.1 1997/07/21 13:47:49 mdw
* Initial revision
*
*/
{
char *pass = getpass("Password: ");
+ unsigned char k[IDEA_KEYSIZE];
md5_init(&md);
md5_buffer(&md, pass, strlen(pass));
memset(pass, 0, strlen(pass));
- md5_final(&md);
+ md5_final(&md, k);
- icrypt_init(&j, md.val, 0);
+ icrypt_init(&j, k, 0);
}
if (optind >= argc)