Home
last modified time | relevance | path

Searched refs:count (Results 1 – 24 of 24) sorted by relevance

/openssh-portable/openbsd-compat/
H A Dbcrypt_pbkdf.c122 uint32_t count; in bcrypt_pbkdf() local
142 for (count = 1; keylen > 0; count++) { in bcrypt_pbkdf()
143 countsalt[saltlen + 0] = (count >> 24) & 0xff; in bcrypt_pbkdf()
144 countsalt[saltlen + 1] = (count >> 16) & 0xff; in bcrypt_pbkdf()
145 countsalt[saltlen + 2] = (count >> 8) & 0xff; in bcrypt_pbkdf()
146 countsalt[saltlen + 3] = count & 0xff; in bcrypt_pbkdf()
167 size_t dest = i * stride + (count - 1); in bcrypt_pbkdf()
H A Dmd5.c57 ctx->count = 0; in MD5Init()
74 have = (size_t)((ctx->count >> 3) & (MD5_BLOCK_LENGTH - 1)); in MD5Update()
78 ctx->count += (u_int64_t)len << 3; in MD5Update()
109 u_int8_t count[8]; in MD5Pad() local
113 PUT_64BIT_LE(count, ctx->count); in MD5Pad()
117 ((ctx->count >> 3) & (MD5_BLOCK_LENGTH - 1)); in MD5Pad()
121 MD5Update(ctx, count, 8); in MD5Pad()
H A Dsha1.c115 context->count = 0; in SHA1Init()
133 j = (size_t)((context->count >> 3) & 63); in SHA1Update()
134 context->count += ((u_int64_t)len << 3); in SHA1Update()
159 finalcount[i] = (u_int8_t)((context->count >> in SHA1Pad()
163 while ((context->count & 504) != 448) in SHA1Pad()
H A Dmd5.h26 u_int64_t count; /* number of bits, mod 2^64 */ member
H A Dgetrrsetbyname.c448 parse_dns_qsection(const u_char *answer, int size, const u_char **cp, int count) in parse_dns_qsection() argument
454 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) { in parse_dns_qsection()
495 int count) in parse_dns_rrsection() argument
501 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) { in parse_dns_rrsection()
H A Dsha1.h20 u_int64_t count; member
H A Dbsd-snprintf.c862 vsnprintf (char *str, size_t count, const char *fmt, va_list args) in vsnprintf() argument
864 return dopr(str, count, fmt, args); in vsnprintf()
870 snprintf(char *str, size_t count, SNPRINTF_CONST char *fmt, ...) in snprintf() argument
876 ret = vsnprintf(str, count, fmt, ap); in snprintf()
/openssh-portable/
H A Dsrclimit.c70 int i, bits, first_unused, count = 0; in srclimit_check_allow() local
97 count++; in srclimit_check_allow()
105 __func__, xas, bits, count, max_persource); in srclimit_check_allow()
115 if (count >= max_persource) in srclimit_check_allow()
H A Dsftp-common.c136 u_int i, count; in decode_attrib() local
138 if ((r = sshbuf_get_u32(b, &count)) != 0) in decode_attrib()
140 for (i = 0; i < count; i++) { in decode_attrib()
H A Dpkcs11.h734 unsigned long *count));
744 unsigned long *count));
786 unsigned long count, ck_object_handle_t *object));
789 struct ck_attribute *templ, unsigned long count,
802 unsigned long count));
807 unsigned long count));
811 unsigned long count));
956 unsigned long count,
H A Dsftp-server.c602 (r = sshbuf_put_u32(msg, count)) != 0) in send_names()
605 for (i = 0; i < count; i++) { in send_names()
1122 int nstats = 10, count = 0, i; in process_readdir() local
1126 if (count >= nstats) { in process_readdir()
1135 stat_to_attrib(&st, &(stats[count].attrib)); in process_readdir()
1136 stats[count].name = xstrdup(dp->d_name); in process_readdir()
1138 count++; in process_readdir()
1141 if (count == 100) in process_readdir()
1144 if (count > 0) { in process_readdir()
1145 send_names(id, count, stats); in process_readdir()
[all …]
H A Dsftp.c1801 if (count > 0) { in complete_ambiguous()
1831 u_int y, count = 0, cmdlen, tmplen; in complete_cmd_parse() local
1842 list[count] = NULL; in complete_cmd_parse()
1848 return count; in complete_cmd_parse()
1857 list[count] = NULL; in complete_cmd_parse()
1859 if (count == 0) { in complete_cmd_parse()
1866 if (count > 1) in complete_cmd_parse()
1882 if (count == 1) { in complete_cmd_parse()
1895 return count; in complete_cmd_parse()
2211 int count = 0; in interactive_loop() local
[all …]
H A Dscp.c1243 size_t j, count; local
1465 for (count = i = 0; i < size; i += bp->cnt) {
1469 count += amt;
1483 if (count == bp->cnt) {
1487 count) != count) {
1493 count = 0;
1498 if (count != 0 && !wrerr &&
1499 atomicio(vwrite, ofd, bp->buf, count) != count) {
H A Dmoduli.c500 unsigned long count = 0; in count_lines() local
508 count++; in count_lines()
510 debug("input file has %lu lines", count); in count_lines()
511 return count; in count_lines()
H A Dsftp-client.c629 u_int count, id, i, expected_id, ents = 0; in do_lsreaddir() local
700 if ((r = sshbuf_get_u32(msg, &count)) != 0) in do_lsreaddir()
702 if (count > SSHBUF_SIZE_MAX) in do_lsreaddir()
704 if (count == 0) in do_lsreaddir()
707 for (i = 0; i < count; i++) { in do_lsreaddir()
921 u_int expected_id, count, id; in do_realpath() local
954 if ((r = sshbuf_get_u32(msg, &count)) != 0) in do_realpath()
956 if (count != 1) in do_realpath()
1122 u_int expected_id, count, id; in do_readlink() local
1154 if ((r = sshbuf_get_u32(msg, &count)) != 0) in do_readlink()
[all …]
H A Dssh-add.c831 int count = 0; in main() local
849 count++; in main()
851 if (count == 0) in main()
H A Dservconf.c2745 dump_cfg_strarray(ServerOpCodes code, u_int count, char **vals) in dump_cfg_strarray() argument
2749 for (i = 0; i < count; i++) in dump_cfg_strarray()
2754 dump_cfg_strarray_oneline(ServerOpCodes code, u_int count, char **vals) in dump_cfg_strarray_oneline() argument
2758 if (count <= 0 && code != sAuthenticationMethods) in dump_cfg_strarray_oneline()
2761 for (i = 0; i < count; i++) in dump_cfg_strarray_oneline()
2763 if (code == sAuthenticationMethods && count == 0) in dump_cfg_strarray_oneline()
H A Dssh-agent.c855 int r, i, count = 0, success = 0, confirm = 0; in process_add_smartcard_key() local
886 count = pkcs11_add_provider(canonical_provider, pin, &keys, &comments); in process_add_smartcard_key()
887 for (i = 0; i < count; i++) { in process_add_smartcard_key()
H A Dreadconf.c3008 dump_cfg_strarray(OpCodes code, u_int count, char **vals) in dump_cfg_strarray() argument
3012 for (i = 0; i < count; i++) in dump_cfg_strarray()
3017 dump_cfg_strarray_oneline(OpCodes code, u_int count, char **vals) in dump_cfg_strarray_oneline() argument
3022 for (i = 0; i < count; i++) in dump_cfg_strarray_oneline()
3028 dump_cfg_forwards(OpCodes code, u_int count, const struct Forward *fwds) in dump_cfg_forwards() argument
3034 for (i = 0; i < count; i++) { in dump_cfg_forwards()
H A Dpacket.c330 ssh_packet_set_timeout(struct ssh *ssh, int timeout, int count) in ssh_packet_set_timeout() argument
334 if (timeout <= 0 || count <= 0) { in ssh_packet_set_timeout()
338 if ((INT_MAX / 1000) / count < timeout) in ssh_packet_set_timeout()
341 state->packet_timeout_ms = timeout * count * 1000; in ssh_packet_set_timeout()
H A DPROTOCOL515 packets). Servers MAY count internal file handles against this limit
H A Dsshconnect2.c781 while (authctxt->mech_tried < authctxt->gss_supported_mechs->count && in userauth_gssapi()
H A Dconfigure.ac2247 int x_snprintf(char *str, size_t count, const char *fmt, ...)
2253 ret = vsnprintf(str, count, fmt, ap);
/openssh-portable/openbsd-compat/regress/
H A Dsnprintftest.c35 int x_snprintf(char *str, size_t count, const char *fmt, ...) in x_snprintf() argument
41 ret = vsnprintf(str, count, fmt, ap); in x_snprintf()