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

Diff of /libmcrypt/lib/mcrypt_modules.c

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

revision 1.35 by nmav, Tue Dec 17 14:31:40 2002 UTC revision 1.36 by nmav, Sun Dec 22 17:56:02 2002 UTC
# Line 512  int mcrypt(MCRYPT td, void *buf, void *a Line 512  int mcrypt(MCRYPT td, void *buf, void *a
512  {  {
513          int (*_mcrypt) (void *, void *, int, int, void *, void *, void*);          int (*_mcrypt) (void *, void *, int, int, void *, void *, void*);
514    
         if (!buf) return -1;  
   
515          _mcrypt = td->m_encrypt;          _mcrypt = td->m_encrypt;
516    
517          return _mcrypt(buf, a, b, mcrypt_enc_get_block_size(td), td->akey,          return _mcrypt(buf, a, b, mcrypt_enc_get_block_size(td), td->akey,
# Line 525  int mdecrypt(MCRYPT td, void *buf, void Line 523  int mdecrypt(MCRYPT td, void *buf, void
523  {  {
524          int (*_mdecrypt) (void *, void *, int, int, void *, void *, void*);          int (*_mdecrypt) (void *, void *, int, int, void *, void *, void*);
525    
         if (!buf) return -1;  
   
526          _mdecrypt = td->m_decrypt;          _mdecrypt = td->m_decrypt;
527          return _mdecrypt(buf, a, b, mcrypt_enc_get_block_size(td),          return _mdecrypt(buf, a, b, mcrypt_enc_get_block_size(td),
528                           td->akey, td->a_encrypt, td->a_decrypt);                           td->akey, td->a_encrypt, td->a_decrypt);

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26