X-Git-Url: https://git.distorted.org.uk/~mdw/become/blobdiff_plain/c4f2d992e4a0fc068281376d89ec38de56dc2f58..8100c51dbd2114e89935ef6810a805f787eaa8f4:/src/icrypt.c diff --git a/src/icrypt.c b/src/icrypt.c index 828ce1e..589c5a5 100644 --- a/src/icrypt.c +++ b/src/icrypt.c @@ -1,13 +1,13 @@ /* -*-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' * @@ -22,14 +22,17 @@ * 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 * */ @@ -285,12 +288,13 @@ int main(int argc, char *argv[]) { 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)