Add the CRC32 compensation attack detector that all other SSH
[u/mdw/putty] / ssh.h
diff --git a/ssh.h b/ssh.h
index 3981066..7857f15 100644 (file)
--- 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];