/[mcrypt]/libmcrypt/lib/mcrypt.c
ViewVC logotype

Diff of /libmcrypt/lib/mcrypt.c

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

revision 1.7 by nmav, Wed Jan 17 23:55:42 2001 UTC revision 1.8 by nmav, Mon Jan 22 22:15:17 2001 UTC
# Line 106  static int internal_init_mcrypt(MCRYPT t Line 106  static int internal_init_mcrypt(MCRYPT t
106    
107          init_mcrypt(td, td->abuf, key, key_size, IV);          init_mcrypt(td, td->abuf, key, key_size, IV);
108    
109          mcrypt_set_key(td,          ok = mcrypt_set_key(td,
110                         (void *) td->akey,                         (void *) td->akey,
111                         (void *) td->keyword_given,                         (void *) td->keyword_given,
112                         key_size, IV, mcrypt_enc_get_iv_size(td));                         key_size, IV, mcrypt_enc_get_iv_size(td));
113    
114            if (ok!=0) return MCRYPT_UNKNOWN_ERROR; /* algorithm error */
115    
116          if (td->akey == NULL) {          if (td->akey == NULL) {
117                  internal_end_mcrypt(td);                  internal_end_mcrypt(td);
118                  return MCRYPT_UNKNOWN_ERROR;                  return MCRYPT_UNKNOWN_ERROR;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26