]> andersk Git - openssh.git/blobdiff - deattack.c
- jakob@cvs.openbsd.org 2001/08/02 16:14:05
[openssh.git] / deattack.c
index 9b9babace3b35f2b5411c79190de8edb6dfda753..1a89be4b803887d318f5146926bad92ef7c65ce3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: deattack.c,v 1.12 2001/01/21 19:05:48 markus Exp $    */
+/*     $OpenBSD: deattack.c,v 1.14 2001/06/23 15:12:18 itojun Exp $    */
 
 /*
  * Cryptographic attack detector for ssh - source code
 /* Hash function (Input keys are cipher results) */
 #define HASH(x)                GET_32BIT(x)
 
-#define CMP(a,b)       (memcmp(a, b, SSH_BLOCKSIZE))
+#define CMP(a, b)      (memcmp(a, b, SSH_BLOCKSIZE))
 
-
-void
+static void
 crc_update(u_int32_t *a, u_int32_t b)
 {
        b ^= *a;
@@ -55,7 +54,7 @@ crc_update(u_int32_t *a, u_int32_t b)
 }
 
 /* detect if a block is used in a particular pattern */
-int
+static int
 check_crc(u_char *S, u_char *buf, u_int32_t len,
          u_char *IV)
 {
This page took 0.218778 seconds and 4 git commands to generate.