diff options
Diffstat (limited to 'crc32.c')
-rw-r--r-- | crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crc32.c,v 1.9 2003/02/12 21:39:50 markus Exp $ */ | 1 | /* $OpenBSD: crc32.c,v 1.11 2006/04/22 18:29:33 stevesk Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2003 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2003 Markus Friedl. All rights reserved. |
@@ -99,7 +99,7 @@ ssh_crc32(const u_char *buf, u_int32_t size) | |||
99 | u_int32_t i, crc; | 99 | u_int32_t i, crc; |
100 | 100 | ||
101 | crc = 0; | 101 | crc = 0; |
102 | for (i = 0; i < size; i++) | 102 | for (i = 0; i < size; i++) |
103 | crc = crc32tab[(crc ^ buf[i]) & 0xff] ^ (crc >> 8); | 103 | crc = crc32tab[(crc ^ buf[i]) & 0xff] ^ (crc >> 8); |
104 | return crc; | 104 | return crc; |
105 | } | 105 | } |