Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/crypt.c
Parent Directory
| Revision Log
| Patch
| 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 |
*/ |
*/ |
| 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; |
| 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; |
| 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; |
| 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; |
| 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; |
| 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 |
|
|
|