/[pkg-mixmaster]/trunk/Mix/Src/crypto.c
ViewVC logotype

Diff of /trunk/Mix/Src/crypto.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 101 by rabbi, Mon Jul 22 17:54:48 2002 UTC revision 102 by rabbi, Wed Jul 24 07:48:50 2002 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Interface to cryptographic library     Interface to cryptographic library
9     $Id: crypto.c,v 1.3 2002/07/22 17:54:48 rabbi Exp $ */     $Id: crypto.c,v 1.4 2002/07/24 07:48:50 rabbi Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 305  int v2createkey(void) Line 305  int v2createkey(void)
305      f = mix_openfile(SECRING, "a");      f = mix_openfile(SECRING, "a");
306      if (f != NULL) {      if (f != NULL) {
307        id_encode(keyid, line);        id_encode(keyid, line);
308        buf_appends(ek, PASS_PHRASE);        buf_appends(ek, PASSPHRASE);
309        digest_md5(ek, ek);        digest_md5(ek, ek);
310        buf_setrnd(iv, 8);        buf_setrnd(iv, 8);
311        buf_crypt(b, ek, iv, ENCRYPT);        buf_crypt(b, ek, iv, ENCRYPT);

Legend:
Removed from v.101  
changed lines
  Added in v.102

  ViewVC Help
Powered by ViewVC 1.1.5