Lines Matching refs:len
79 check_crc(const u_char *S, const u_char *buf, u_int32_t len)
85 for (c = buf; c < buf + len; c += SSH_BLOCKSIZE) {
106 detect_attack(struct deattack_ctx *dctx, const u_char *buf, u_int32_t len)
112 if (len > (SSH_MAXBLOCKS * SSH_BLOCKSIZE) ||
113 len % SSH_BLOCKSIZE != 0)
115 for (l = dctx->n; l < HASH_FACTOR(len / SSH_BLOCKSIZE); l = l << 2)
135 if (len <= HASH_MINBLOCKS) {
136 for (c = buf; c < buf + len; c += SSH_BLOCKSIZE) {
139 if ((check_crc(c, buf, len)))
150 for (c = buf, same = j = 0; c < (buf + len); c += SSH_BLOCKSIZE, j++) {
156 if (check_crc(c, buf, len))