/[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.33 by nmav, Mon Dec 16 09:50:50 2002 UTC revision 1.34 by nmav, Mon Dec 16 09:52:51 2002 UTC
# Line 511  WIN32DLL_DEFINE Line 511  WIN32DLL_DEFINE
511  int mcrypt(MCRYPT td, void *buf, void *a, int b)  int mcrypt(MCRYPT td, void *buf, void *a, int b)
512  {  {
513          int (*_mcrypt) (void *, void *, int, int, void *, void *, void*);          int (*_mcrypt) (void *, void *, int, int, void *, void *, void*);
514    
515            if (!buf) return -1;
516    
517          _mcrypt = td->m_encrypt;          _mcrypt = td->m_encrypt;
518    
519          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 522  int mdecrypt(MCRYPT td, void *buf, void Line 525  int mdecrypt(MCRYPT td, void *buf, void
525  {  {
526          int (*_mdecrypt) (void *, void *, int, int, void *, void *, void*);          int (*_mdecrypt) (void *, void *, int, int, void *, void *, void*);
527    
528            if (!buf) return -1;
529    
530          _mdecrypt = td->m_decrypt;          _mdecrypt = td->m_decrypt;
531          return _mdecrypt(buf, a, b, mcrypt_enc_get_block_size(td),          return _mdecrypt(buf, a, b, mcrypt_enc_get_block_size(td),
532                           td->akey, td->a_encrypt, td->a_decrypt);                           td->akey, td->a_encrypt, td->a_decrypt);

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26