| /freebsd-12-stable/sys/contrib/libsodium/test/default/ |
| D | pwhash_argon2i.c | 89 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL, in tv() 92 strlen(tests[i].salt_hex), NULL, NULL, NULL); in tv() 141 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL, in tv2() 144 strlen(tests[i].salt_hex), NULL, NULL, NULL); in tv2() 156 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 3, in tv2() 160 if (crypto_pwhash_argon2i(out, sizeof out, "password", strlen("password"), salt, 3, in tv2() 164 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 3, in tv2() 168 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 3, in tv2() 172 if (crypto_pwhash(out, sizeof out, "password", strlen("password"), salt, 2, in tv2() 176 if (crypto_pwhash(out, 15, "password", strlen("password"), salt, 3, in tv2() [all …]
|
| D | pwhash_argon2id.c | 89 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL, in tv() 92 strlen(tests[i].salt_hex), NULL, NULL, NULL); in tv() 141 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL, in tv2() 144 strlen(tests[i].salt_hex), NULL, NULL, NULL); in tv2() 156 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 3, in tv2() 160 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 3, in tv2() 164 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 3, in tv2() 168 if (crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, 2, in tv2() 172 if (crypto_pwhash_argon2id(out, 15, "password", strlen("password"), salt, 3, in tv2() 180 assert(crypto_pwhash_argon2id(out, sizeof out, "password", strlen("password"), salt, in tv2() [all …]
|
| D | pwhash_scrypt.c | 101 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL, in tv() 104 strlen(tests[i].salt_hex), NULL, NULL, NULL); in tv() 150 tests[i].passwd_hex, strlen(tests[i].passwd_hex), NULL, in tv2() 153 strlen(tests[i].salt_hex), NULL, NULL, NULL); in tv2() 282 out = (char *) sodium_malloc(strlen(tests[i].out) + 1U); in tv3() 284 memcpy(out, tests[i].out, strlen(tests[i].out) + 1U); in tv3() 285 passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); in tv3() 287 memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U); in tv3() 289 out, passwd, strlen(passwd)) != 0) { in tv3() 312 if (crypto_pwhash_scryptsalsa208sha256_str(str_out, passwd, strlen(passwd), in str_tests() [all …]
|
| D | codecs.c | 25 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, in main() 32 sodium_hex2bin(buf4, sizeof buf4, hex, strlen(hex), ": ", &bin_len, NULL); in main() 122 assert(sodium_base642bin(buf4, sizeof buf4, b64, strlen(b64), "\n\r ", &bin_len, in main() 129 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), "\n\r ", &bin_len, in main() 136 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, &bin_len, in main() 142 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 144 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 146 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), " \r\n", NULL, in main() 148 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 150 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), " \r\n", NULL, in main() [all …]
|
| D | aead_aes256gcm.c | 3106 assert(strlen(tests[i].key_hex) == 2 * crypto_aead_aes256gcm_KEYBYTES); in tv() 3108 tests[i].key_hex, strlen(tests[i].key_hex), in tv() 3110 assert(strlen(tests[i].nonce_hex) == 2 * crypto_aead_aes256gcm_NPUBBYTES); in tv() 3112 tests[i].nonce_hex, strlen(tests[i].nonce_hex), in tv() 3114 message_len = strlen(tests[i].message_hex) / 2; in tv() 3117 tests[i].message_hex, strlen(tests[i].message_hex), in tv() 3119 ad_len = strlen(tests[i].ad_hex) / 2; in tv() 3122 tests[i].ad_hex, strlen(tests[i].ad_hex), in tv() 3127 assert(strlen(tests[i].ciphertext_hex) == 2 * message_len); in tv() 3129 tests[i].ciphertext_hex, strlen(tests[i].ciphertext_hex), in tv() [all …]
|
| /freebsd-12-stable/contrib/ntp/libjsmn/ |
| D | jsmn_test.c | 35 && strlen(s) == (t).end - (t).start) 52 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 59 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 66 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 74 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 91 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple() 103 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple() 108 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple() 122 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive() 130 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive() [all …]
|
| /freebsd-12-stable/contrib/ofed/infiniband-diags/src/ |
| D | ibportstate.c | 167 mad_dump_field(IB_PORT_LID_F, buf + strlen(buf), in show_port_info() 168 sizeof buf - strlen(buf), val); in show_port_info() 169 sprintf(buf + strlen(buf), "%s", "\n"); in show_port_info() 171 mad_dump_field(IB_PORT_SMLID_F, buf + strlen(buf), in show_port_info() 172 sizeof buf - strlen(buf), val); in show_port_info() 173 sprintf(buf + strlen(buf), "%s", "\n"); in show_port_info() 175 mad_dump_field(IB_PORT_LMC_F, buf + strlen(buf), in show_port_info() 176 sizeof buf - strlen(buf), val); in show_port_info() 177 sprintf(buf + strlen(buf), "%s", "\n"); in show_port_info() 179 mad_dump_field(IB_PORT_LINK_WIDTH_SUPPORTED_F, buf + strlen(buf), in show_port_info() [all …]
|
| /freebsd-12-stable/contrib/libarchive/cpio/test/ |
| D | test_basic.c | 150 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 153 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 156 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 165 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 168 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 171 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 181 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 184 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 187 sizeof(result) - strlen(result) -1); in DEFINE_TEST() 197 sizeof(result) - strlen(result) -1); in DEFINE_TEST() [all …]
|
| /freebsd-12-stable/contrib/sendmail/libsm/ |
| D | strl.c | 66 return strlen(src); 73 return i + strlen(src + i); 111 o = strlen(dst); 113 return o + strlen(src); 121 return j + strlen(src + i); 157 o = strlen(dst); 161 return o + strlen(src1) + strlen(src2); 174 return j + strlen(src1 + i) + strlen(src2); 186 return j + strlen(src2 + i); 231 i += strlen(SM_VA_ARG(ap, char *)); [all …]
|
| /freebsd-12-stable/contrib/less/ |
| D | filename.c | 68 name = p = (char *) ecalloc(strlen(str)+1, sizeof(char)); 85 int esclen = (int) strlen(esc); 149 int esclen = (int) strlen(esc); 187 len = (int) strlen(s) + 3; 233 len = (int) (strlen(dirname) + strlen(filename) + 2); 346 n += (int) strlen(get_filename(ifile)); 382 to += strlen(to); 425 for (slash = s+strlen(s)-1; slash > s; slash--) 428 len = (int) strlen(s) + 4; 437 int len = (int) strlen(s) + 2; [all …]
|
| /freebsd-12-stable/sys/contrib/dev/acpica/compiler/ |
| D | cvcompiler.c | 196 CommentString = UtLocalCacheCalloc (strlen (AslGbl_MsgBuffer) + 1); in CvProcessComment() 211 FinalLineToken = UtLocalCacheCalloc (strlen (LineToken) + 1); in CvProcessComment() 216 if (FinalLineToken[strlen (FinalLineToken) - 1] == 0x0D) in CvProcessComment() 218 FinalLineToken[strlen(FinalLineToken)-1] = 0; in CvProcessComment() 231 for (i = 0; (i < (strlen (LineToken) + 1)) && !CharStart; i++) in CvProcessComment() 241 FinalLineToken = UtLocalCacheCalloc (strlen (LineToken) + 1); in CvProcessComment() 246 if (FinalLineToken[strlen (FinalLineToken) - 1] == 0x0D) in CvProcessComment() 248 FinalLineToken[strlen(FinalLineToken) - 1] = 0; in CvProcessComment() 271 UtLocalCacheCalloc (strlen (CommentString) + in CvProcessComment() 316 CommentString = UtLocalCacheCalloc (strlen (AslGbl_MsgBuffer) + 1); in CvProcessCommentType2() [all …]
|
| /freebsd-12-stable/contrib/nvi/cl/ |
| D | cl_term.c | 100 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init() 102 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init() 104 CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen); in cl_term_init() 106 if (seq_set(sp, name, strlen(tkp->name), ts, strlen(t), in cl_term_init() 107 output, strlen(tkp->output), SEQ_COMMAND, in cl_term_init() 121 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init() 123 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init() 126 if (seq_set(sp, name, strlen(tkp->name), ts, strlen(t), in cl_term_init() 145 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init() 147 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init() [all …]
|
| /freebsd-12-stable/lib/libcrypt/ |
| D | crypt-md5.c | 58 if (!strncmp(salt, magic, strlen(magic))) in crypt_md5() 59 salt += strlen(magic); in crypt_md5() 71 MD5Update(&ctx, (const u_char *)pw, strlen(pw)); in crypt_md5() 74 MD5Update(&ctx, (const u_char *)magic, strlen(magic)); in crypt_md5() 81 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); in crypt_md5() 83 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); in crypt_md5() 85 for(pl = (int)strlen(pw); pl > 0; pl -= MD5_SIZE) in crypt_md5() 93 for (i = strlen(pw); i; i >>= 1) in crypt_md5() 114 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); in crypt_md5() 122 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); in crypt_md5() [all …]
|
| /freebsd-12-stable/contrib/unbound/dnstap/ |
| D | dnstap_fstrm.c | 61 n = 4+4+4+4+4+strlen(contenttype); in fstrm_create_control_frame_start() 66 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_start() 69 control[4] = htonl(strlen(contenttype)); in fstrm_create_control_frame_start() 70 memmove(&control[5], contenttype, strlen(contenttype)); in fstrm_create_control_frame_start() 108 n = 4+4+4+4+4+strlen(contenttype); in fstrm_create_control_frame_ready() 114 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_ready() 117 control[4] = htonl(strlen(contenttype)); in fstrm_create_control_frame_ready() 118 memmove(&control[5], contenttype, strlen(contenttype)); in fstrm_create_control_frame_ready() 136 n = 4+4+4+4+4+strlen(contenttype); in fstrm_create_control_frame_accept() 142 control[1] = htonl(4+4+4+strlen(contenttype)); in fstrm_create_control_frame_accept() [all …]
|
| /freebsd-12-stable/crypto/heimdal/lib/krb5/ |
| D | test_addr.c | 56 printf("addr %d: %s (%d/%d)\n", i, buf, (int)len, (int)strlen(buf)); in print_addr() 58 if (strlen(buf) > sizeof(buf)) in print_addr() 60 (int)strlen(buf), (int)sizeof(buf)); in print_addr() 63 printf("addr %d: %s (%d/%d)\n", i, buf2, (int)len, (int)strlen(buf2)); in print_addr() 65 if (strlen(buf2) > sizeof(buf2)) in print_addr() 67 (int)strlen(buf2), (int)sizeof(buf2)); in print_addr() 95 printf("addr %s (%d/%d) should be %d\n", buf, (int)len, (int)strlen(buf), (int)outlen); in truncated_addr() 98 if (truncate_len > strlen(buf) + 1) in truncated_addr() 100 buf, (int)truncate_len, (int)strlen(buf), addr); in truncated_addr() 104 buf, (int)outlen, (int)strlen(buf)); in truncated_addr() [all …]
|
| /freebsd-12-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| D | tst.substr.d | 68 command[i].index = strlen(str) - 1; 72 command[i].index = strlen(str); 76 command[i].index = strlen(str) + 1; 89 command[i].length = strlen(str) - command[i].index + 1; 93 command[i].length = strlen(str) - command[i].index + 2; 144 command[i].index = -2 * strlen(str); 145 command[i].length = 2 * strlen(str); 148 command[i].index = -2 * strlen(str); 149 command[i].length = strlen(str); 152 command[i].index = -2 * strlen(str); [all …]
|
| /freebsd-12-stable/usr.sbin/nghook/ |
| D | main.c | 262 snprintf(sbuf + strlen(sbuf), in WriteAscii() 263 sizeof(sbuf) - strlen(sbuf), in WriteAscii() 266 snprintf(sbuf + strlen(sbuf), in WriteAscii() 267 sizeof(sbuf) - strlen(sbuf), " "); in WriteAscii() 268 snprintf(sbuf + strlen(sbuf), sizeof(sbuf) - strlen(sbuf), " "); in WriteAscii() 273 snprintf(sbuf + strlen(sbuf), in WriteAscii() 274 sizeof(sbuf) - strlen(sbuf), "%c", ch); in WriteAscii() 276 snprintf(sbuf + strlen(sbuf), in WriteAscii() 277 sizeof(sbuf) - strlen(sbuf), " "); in WriteAscii() 278 snprintf(sbuf + strlen(sbuf), in WriteAscii() [all …]
|
| /freebsd-12-stable/contrib/apr-util/test/ |
| D | teststrmatch.c | 56 match = apr_strmatch(pattern, input1, strlen(input1)); in test_str() 59 match = apr_strmatch(pattern, input2, strlen(input2)); in test_str() 62 match = apr_strmatch(pattern_onechar, input1, strlen(input1)); in test_str() 65 match = apr_strmatch(pattern_zero, input1, strlen(input1)); in test_str() 68 match = apr_strmatch(pattern_nocase, input1, strlen(input1)); in test_str() 71 match = apr_strmatch(pattern, input3, strlen(input3)); in test_str() 74 match = apr_strmatch(pattern, input4, strlen(input4)); in test_str() 77 match = apr_strmatch(pattern, input5, strlen(input5)); in test_str() 80 match = apr_strmatch(pattern, input6, strlen(input6)); in test_str()
|
| /freebsd-12-stable/contrib/gcclibs/libmudflap/ |
| D | mf-hooks2.c | 193 size_t n = strlen (src); in WRAPPER2() 218 dest_sz = strlen (dest); in WRAPPER2() 219 src_sz = strlen (src); in WRAPPER2() 267 s1_sz = strlen (s1); in WRAPPER2() 268 s2_sz = strlen (s2); in WRAPPER2() 280 s1_sz = strlen (s1); in WRAPPER2() 281 s2_sz = strlen (s2); in WRAPPER2() 318 size_t n = strlen (s); in WRAPPER2() 366 n = strlen (s); in WRAPPER2() 376 n = strlen (s); in WRAPPER2() [all …]
|
| /freebsd-12-stable/usr.sbin/ctm/mkCTM/ |
| D | mkctm.c | 126 char *buf = alloca(strlen(dir) + strlen(name) + in name_stat() 127 strlen(de->d_name) + 3); in name_stat() 147 char *p = alloca(strlen(name)+strlen(de->d_name)+2); in Equ() 153 char *buf1 = alloca(strlen(dir1) + strlen(name) + in Equ() 154 strlen(de->d_name) + 3); in Equ() 155 char *buf2 = alloca(strlen(dir2) + strlen(name) + in Equ() 156 strlen(de->d_name) + 3); in Equ() 220 u_char *cmd = alloca(strlen(buf1)+strlen(buf2)+100); in Equ() 308 char *p = alloca(strlen(name)+strlen(de->d_name)+2); in Add() 315 char *buf2 = alloca(strlen(dir2) + strlen(name) + in Add() [all …]
|
| /freebsd-12-stable/usr.sbin/yp_mkdb/ |
| D | yp_mkdb.c | 217 data.size = strlen(mastername); in main() 224 data.size = strlen(buf); in main() 231 data.size = strlen(infilename); in main() 239 data.size = strlen(outfilename); in main() 247 data.size = strlen(domain); in main() 260 while (buf[strlen(buf) - 1] == '\\') { in main() 261 fgets((char *)&buf[strlen(buf) - 1], in main() 262 sizeof(buf) - strlen(buf), ifp); in main() 292 if (strlen(keybuf) > YPMAXRECORD) { in main() 297 if (!strlen(keybuf)) { in main() [all …]
|
| /freebsd-12-stable/contrib/binutils/binutils/ |
| D | wrstabs.c | 368 info->strings_size += strlen (string) + 1; in stab_write_symbol() 535 p += strlen ((char *) p) + 1; in write_stabs_in_sections_debugging_info() 662 sprintf (buf + strlen (buf), "%ld;", ((long) 1 << (size * 8)) - 1); in stab_int_type() 673 sprintf (buf + strlen (buf), "%ld;%ld;", in stab_int_type() 793 buf = (char *) xmalloc (10 + strlen (tag)); in stab_enum_type() 804 len += strlen (tag); in stab_enum_type() 806 len += strlen (*pn) + 20; in stab_enum_type() 820 sprintf (buf + strlen (buf), "%s:%ld,", *pn, (long) *pv); in stab_enum_type() 866 buf = (char *) xmalloc (strlen (s) + 2); in stab_modify_type() 909 buf = (char *) xmalloc (strlen (s) + 20); in stab_modify_type() [all …]
|
| /freebsd-12-stable/contrib/expat/tests/ |
| D | runtests.c | 92 # define xcstrlen(s) strlen(s) 168 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _expect_failure() 426 (int)strlen(options->parse_text), XML_TRUE); in external_entity_optioner() 538 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST() 600 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _run_character_check() 617 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _run_attribute_check() 647 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in _run_ext_character_check() 752 if (_XML_Parse_SINGLE_BYTES(g_parser, text, (int)strlen(text), XML_TRUE) in START_TEST() 799 const char *fromLim = cases[i].input + strlen(cases[i].input); in START_TEST() 813 for (; j < strlen(cases[i].input); j++) { in START_TEST() [all …]
|
| /freebsd-12-stable/contrib/libarchive/tar/test/ |
| D | test_copy.c | 68 cwdlen = strlen(buf); in compute_loop_max() 84 pcwdlen = strlen(pbuf); in compute_loop_max() 86 wcwdlen = strlen(wbuf); in compute_loop_max() 129 assertEqualInt(strlen(buff), i); in compute_filenames() 208 assertFileContents(name1, (int)strlen(name1), name1); in verify_tree() 224 if (strlen(name2) <= limit) in verify_tree() 259 failure("strlen(p)=%zu", strlen(p)); in verify_tree() 260 assert(strlen(p) < limit); in verify_tree() 262 filenames[strlen(p)]); in verify_tree() 265 failure("strlen(p)=%zu", strlen(p)); in verify_tree() [all …]
|
| /freebsd-12-stable/sbin/ipf/ipmon/ |
| D | ipmon.c | 522 sprintf(name + strlen(name), "%d", code); in icmpname() 552 sprintf(name + strlen(name), "%d", code); in icmpname6() 667 i = strlen(t); in print_natlog() 672 t += strlen(t); in print_natlog() 674 t += strlen(t); in print_natlog() 706 t += strlen(t); in print_natlog() 759 t += strlen(t); in print_natlog() 768 t += strlen(t); in print_natlog() 771 t += strlen(t); in print_natlog() 777 t += strlen(t); in print_natlog() [all …]
|