X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/3f2d010c23f77862bb890b5f88244039bcf8f875..7d2c1789c5a8ccf8a767fb11082bff34c1b7c5aa:/ssh.h diff --git a/ssh.h b/ssh.h index 3981066c..7857f152 100644 --- a/ssh.h +++ b/ssh.h @@ -72,6 +72,10 @@ typedef unsigned int word32; typedef unsigned int uint32; unsigned long crc32(const void *s, size_t len); +unsigned long crc32_update(unsigned long crc_input, const void *s, size_t len); + +/* SSH CRC compensation attack detector */ +int detect_attack(unsigned char *buf, uint32 len, unsigned char *IV); typedef struct { uint32 h[4];