X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0622ea7168aa265db70be885fbffb050f29f0205..9a3a93a5c6a879994d61da8a146142a6555fd5d0:/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];