Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/crypt.c

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

revision 3093 by maya, Thu Jan 10 16:34:08 2008 UTC revision 3118 by yutakapon, Fri Feb 29 15:56:41 2008 UTC
# Line 48  SOFTWARE, EVEN IF ADVISED OF THE POSSIBI Line 48  SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
48  #define DEATTACK_DETECTED       1  #define DEATTACK_DETECTED       1
49    
50  /*  /*
51   * $Id: crypt.c,v 1.18 2008-01-10 16:34:08 maya Exp $ Cryptographic attack   * $Id: crypt.c,v 1.19 2008-02-29 15:56:41 yutakapon Exp $ Cryptographic attack
52   * detector for ssh - source code (C)1998 CORE-SDI, Buenos Aires Argentina   * detector for ssh - source code (C)1998 CORE-SDI, Buenos Aires Argentina
53   * Ariel Futoransky(futo@core-sdi.com) <http://www.core-sdi.com>   * Ariel Futoransky(futo@core-sdi.com) <http://www.core-sdi.com>
54   */   */
# Line 224  static void cAES128_encrypt(PTInstVar pv Line 224  static void cAES128_encrypt(PTInstVar pv
224    
225          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)
226          if (bytes == 0)          if (bytes == 0)
227                  return;                  goto error;
228    
229          if (newbuf == NULL)          if (newbuf == NULL)
230                  return;                  return;
# Line 271  static void cAES128_decrypt(PTInstVar pv Line 271  static void cAES128_decrypt(PTInstVar pv
271    
272          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)
273          if (bytes == 0)          if (bytes == 0)
274                  return;                  goto error;
275    
276          if (newbuf == NULL)          if (newbuf == NULL)
277                  return;                  return;
# Line 320  static void c3DES_CBC_encrypt(PTInstVar Line 320  static void c3DES_CBC_encrypt(PTInstVar
320    
321          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)
322          if (bytes == 0)          if (bytes == 0)
323                  return;                  goto error;
324    
325          if (newbuf == NULL)          if (newbuf == NULL)
326                  return;                  return;
# Line 367  static void c3DES_CBC_decrypt(PTInstVar Line 367  static void c3DES_CBC_decrypt(PTInstVar
367    
368          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)
369          if (bytes == 0)          if (bytes == 0)
370                  return;                  goto error;
371    
372          if (newbuf == NULL)          if (newbuf == NULL)
373                  return;                  return;
# Line 414  static void cBlowfish_encrypt2(PTInstVar Line 414  static void cBlowfish_encrypt2(PTInstVar
414    
415          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)
416          if (bytes == 0)          if (bytes == 0)
417                  return;                  goto error;
418    
419          if (newbuf == NULL)          if (newbuf == NULL)
420                  return;                  return;
# Line 452  static void cBlowfish_decrypt2(PTInstVar Line 452  static void cBlowfish_decrypt2(PTInstVar
452    
453          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)          // 事前復号化により、全ペイロードが復号化されている場合は、0バイトになる。(2004.11.7 yutaka)
454          if (bytes == 0)          if (bytes == 0)
455                  return;                  goto error;
456    
457          if (newbuf == NULL)          if (newbuf == NULL)
458                  return;                  return;

Legend:
Removed from v.3093  
changed lines
  Added in v.3118

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26