Home
last modified time | relevance | path

Searched refs:outlen (Results 1 – 25 of 105) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/kiconv/kiconv_emea/
H A Dkiconv_emea.c894 size_t *outlen, int flag, int *errno) in kiconvstr_to_sb() argument
919 obtail = ob + *outlen; in kiconvstr_to_sb()
1041 *outlen = obtail - ob; in kiconvstr_to_sb()
1052 size_t *outlen, int flag, int *errno) in kiconvstr_to_720() argument
1060 size_t *outlen, int flag, int *errno) in kiconvstr_to_737() argument
1068 size_t *outlen, int flag, int *errno) in kiconvstr_to_852() argument
1076 size_t *outlen, int flag, int *errno) in kiconvstr_to_857() argument
1084 size_t *outlen, int flag, int *errno) in kiconvstr_to_862() argument
1092 size_t *outlen, int flag, int *errno) in kiconvstr_to_866() argument
1275 obtail = ob + *outlen; in kiconvstr_fr_sb()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnls.c86 size_t inlen, outlen; in nls_str_toloc() local
93 inlen = outlen = strlen(src); in nls_str_toloc()
94 my_iconv(nls_toloc, NULL, NULL, &p, &outlen); in nls_str_toloc()
104 size_t inlen, outlen; in nls_str_toext() local
111 inlen = outlen = strlen(src); in nls_str_toext()
112 my_iconv(nls_toext, NULL, NULL, &p, &outlen); in nls_str_toext()
123 size_t inlen, outlen; in nls_mem_toloc() local
133 inlen = outlen = size; in nls_mem_toloc()
134 my_iconv(nls_toloc, NULL, NULL, &p, &outlen); in nls_mem_toloc()
144 size_t inlen, outlen; in nls_mem_toext() local
[all …]
H A Dutf_str.c220 size_t inlen, outlen, inbleft, outbleft; in utf8_str_to_upper_or_lower() local
232 outlen = outbleft = inlen + 10; in utf8_str_to_upper_or_lower()
233 if ((res = malloc(outlen)) == NULL) in utf8_str_to_upper_or_lower()
240 if ((res = realloc(res, outlen + inbleft)) == NULL) in utf8_str_to_upper_or_lower()
244 outs = res + outlen - outbleft; in utf8_str_to_upper_or_lower()
246 outlen += inbleft; in utf8_str_to_upper_or_lower()
256 res[outlen - outbleft] = '\0'; in utf8_str_to_upper_or_lower()
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dseterror.c206 (*error_buf)[outlen]=fmt[pos]; in sasl_seterror()
207 outlen++; in sasl_seterror()
215 outlen++; in sasl_seterror()
233 &outlen, cval); in sasl_seterror()
245 (*error_buf)[outlen]='%'; in sasl_seterror()
246 outlen++; in sasl_seterror()
252 &outlen, in sasl_seterror()
284 &outlen, tempbuf); in sasl_seterror()
299 &outlen, tempbuf); in sasl_seterror()
331 outlen = strlen(utf8_buf); in sasl_seterror()
[all …]
/illumos-gate/usr/src/test/crypto-tests/tests/common/
H A Dcryptotest_pkcs.c33 size_t outlen; member
70 op->outlen = arg->outlen; in cryptotest_init()
82 op->outlen = op->inlen; in cryptotest_init()
329 CK_ULONG outlen = op->outlen - *encrlen; in encrypt_update() local
331 op->out + *encrlen, &outlen); in encrypt_update()
335 *encrlen += outlen; in encrypt_update()
343 CK_ULONG outlen = op->outlen - encrlen; in encrypt_final() local
393 CK_ULONG outlen = op->outlen - *encrlen; in decrypt_update() local
395 op->out + *encrlen, &outlen); in decrypt_update()
399 *encrlen += outlen; in decrypt_update()
[all …]
H A Dcryptotest_kcf.c34 size_t outlen; member
104 op->outlen = arg->outlen; in cryptotest_init()
115 op->outlen = op->inlen; in cryptotest_init()
216 mac.cm_maclen = op->outlen; in mac_single()
244 final.mf_maclen = op->outlen; in mac_final()
284 encrypt.ce_encrlen = op->outlen; in encrypt_single()
316 final.ef_encrlen = op->outlen - encrlen; in encrypt_final()
353 decrypt.cd_datalen = op->outlen; in decrypt_single()
388 final.df_datalen = op->outlen - encrlen; in decrypt_final()
421 digest.cd_digestlen = op->outlen; in digest_single()
[all …]
/illumos-gate/usr/src/cmd/refer/
H A Dglue3.c31 corout(char *in, char *out, char *rprog, char *arg, int outlen) in corout() argument
41 return (callhunt(in, out, arg, outlen)); in corout()
43 return (dodeliv(in, out, arg, outlen)); in corout()
66 n = read(fr2, out, outlen); in corout()
75 callhunt(char *in, char *out, char *arg, int outlen) in callhunt() argument
87 argv[5] = (char *)outlen; in callhunt()
103 dodeliv(char *in, char *out, char *arg, int outlen) in dodeliv() argument
113 mlen = findline(in, &mout, outlen, 0L); in dodeliv()
116 strncpy(out, mout, outlen); in dodeliv()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/hash_provider/
H A Dhash_ef_generic.c20 CK_ULONG outlen = output->length; in k5_ef_hash() local
40 (CK_BYTE_PTR)output->data, &outlen)) != CKR_OK) { in k5_ef_hash()
47 output->length = outlen; in k5_ef_hash()
71 int outlen; in k5_ef_mac() local
78 outlen = inlen; in k5_ef_mac()
88 outbuf = (char *)malloc(outlen); in k5_ef_mac()
91 (void) memset(outbuf, 0, outlen); in k5_ef_mac()
104 (void) memcpy(output->data, &outbuf[outlen-8], 8); in k5_ef_mac()
/illumos-gate/usr/src/common/crypto/modes/
H A Dctr.c96 ctr_xor(ctr_ctx_t *ctx, const uint8_t *in, uint8_t *out, size_t outlen, in ctr_xor() argument
103 while (outlen > 0) { in ctr_xor()
125 while (keyamt > 0 && outlen > 0 && in ctr_xor()
131 outlen--; in ctr_xor()
134 if (keyamt > 3 && outlen > 3 && in ctr_xor()
145 outlen -= sizeof (uint32_t); in ctr_xor()
146 } while (keyamt > 3 && outlen > 3); in ctr_xor()
153 while (keyamt > 0 && outlen > 0) { in ctr_xor()
156 outlen--; in ctr_xor()
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr.c150 size_t inlen, outlen; in smbfs_fname_tolocal() local
169 outlen = SMB_MAXFNAMELEN; in smbfs_fname_tolocal()
175 if (uconv_u16tou8(src, &inlen, dst, &outlen, flags) != 0) in smbfs_fname_tolocal()
178 ASSERT(outlen < sizeof (tmpbuf)); in smbfs_fname_tolocal()
179 tmpbuf[outlen] = '\0'; in smbfs_fname_tolocal()
180 bcopy(tmpbuf, ctx->f_name, outlen + 1); in smbfs_fname_tolocal()
181 ctx->f_nmlen = (int)outlen; in smbfs_fname_tolocal()
439 size_t tmplen, outlen; in smbfs_decode_fs_attr_info() local
447 outlen = FSTYPSZ - 1; in smbfs_decode_fs_attr_info()
449 (uchar_t *)fsa->fsa_tname, &outlen, in smbfs_decode_fs_attr_info()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dauth.c75 size_t outlen; in do_auth() local
191 outlen = ENCODELEN(send_tok.length); in do_auth()
192 out_buf = (uchar_t *)malloc(outlen); in do_auth()
200 outlen, &len, 0); in do_auth()
241 reply_parse, out_buf, outlen, &i, 1)) { in do_auth()
333 int *outlen, int decode) in radix_encode() argument
377 *outlen = j; in radix_encode()
379 for (i = j = 0; i < *outlen && j < buflen; i++) in radix_encode()
394 if (j == buflen && i < *outlen) { in radix_encode()
407 outbuf[*outlen = j] = '\0'; in radix_encode()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c85 CK_ULONG outlen; in k5_arcfour_decrypt() local
148 outlen = (CK_ULONG)output->length; in k5_arcfour_decrypt()
154 (CK_ULONG_PTR)&outlen); in k5_arcfour_decrypt()
160 (CK_ULONG_PTR)&outlen); in k5_arcfour_decrypt()
162 output->length = (uint32_t)outlen; in k5_arcfour_decrypt()
203 CK_ULONG outlen; in k5_arcfour_encrypt() local
254 outlen = (CK_ULONG)output->length; in k5_arcfour_encrypt()
260 (CK_ULONG_PTR)&outlen); in k5_arcfour_encrypt()
266 (CK_ULONG_PTR)&outlen); in k5_arcfour_encrypt()
268 output->length = (uint32_t)outlen; in k5_arcfour_encrypt()
H A Daes_provider.c278 CK_ULONG outlen; in krb5int_aes_encrypt() local
366 &outlen); in krb5int_aes_encrypt()
413 &outlen); in krb5int_aes_encrypt()
434 &outlen); in krb5int_aes_encrypt()
730 CK_ULONG outlen; in krb5int_aes_decrypt() local
844 &outlen); in krb5int_aes_decrypt()
881 outlen = length; in krb5int_aes_decrypt()
890 &outlen); in krb5int_aes_decrypt()
904 outlen = length; in krb5int_aes_decrypt()
926 &outlen); in krb5int_aes_decrypt()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_object_read_common.c97 _dwarf_safe_strcpy(char *out, long outlen, const char *in, long inlen) in _dwarf_safe_strcpy() argument
99 if (inlen >= (outlen - 1)) { in _dwarf_safe_strcpy()
100 strncpy(out, in, outlen - 1); in _dwarf_safe_strcpy()
101 out[outlen - 1] = 0; in _dwarf_safe_strcpy()
/illumos-gate/usr/src/uts/common/os/
H A Dkiconv.c455 size_t *outlen, int flag, int *errno) in kiconvstr_to_sb() argument
478 obtail = ob + *outlen; in kiconvstr_to_sb()
592 *outlen = obtail - ob; in kiconvstr_to_sb()
603 size_t *outlen, int flag, int *errno) in kiconvstr_to_1252() argument
611 size_t *outlen, int flag, int *errno) in kiconvstr_to_1() argument
619 size_t *outlen, int flag, int *errno) in kiconvstr_to_15() argument
627 size_t *outlen, int flag, int *errno) in kiconvstr_to_850() argument
639 size_t *outlen, int flag, int *errno) in kiconvstr_fr_sb() argument
651 obtail = ob + *outlen; in kiconvstr_fr_sb()
707 *outlen = obtail - ob; in kiconvstr_fr_sb()
[all …]
/illumos-gate/usr/src/uts/common/kiconv/kiconv_tc/
H A Dkiconv_tc.c221 size_t *outlen, int flag, int *errno, in kiconvstr_fr_big5_common() argument
234 obtail = ob + *outlen; in kiconvstr_fr_big5_common()
289 *outlen = obtail - ob; in kiconvstr_fr_big5_common()
310 size_t *outlen, int flag, int *errno) in kiconvstr_fr_big5() argument
333 size_t *outlen, int flag, int *errno) in kiconvstr_fr_big5hkscs() argument
355 size_t *outlen, int flag, int *errno) in kiconvstr_fr_cp950hkscs() argument
465 size_t *outlen, int flag, int *errno) in kiconvstr_fr_euctw() argument
483 obtail = ob + *outlen; in kiconvstr_fr_euctw()
551 *outlen = obtail - ob; in kiconvstr_fr_euctw()
572 size_t *outlen, int flag, int *errno) in kiconvstr_to_big5() argument
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dconvutf8.c615 int inlen, wclen, outlen;
633 outlen = WideCharToMultiByte(bFromUTF8 ? CP_ACP : CP_UTF8, 0, wcstr,
636 if (outlen > 0) {
637 outstr = (char *) malloc(outlen + 2);
638 outlen = WideCharToMultiByte(bFromUTF8 ? CP_ACP : CP_UTF8, 0, wcstr,
639 wclen, outstr, outlen, NULL, NULL);
640 if (outlen > 0)
641 *(outstr+outlen) = _T('\0');
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dsfsasl.c198 static unsigned int outlen = 0; local
215 while (outlen == 0)
217 while (outbuf == NULL && outlen == 0)
232 outlen = 0;
243 if (outlen - offset > size)
253 len = outlen - offset;
260 outlen = 0;
292 unsigned int outlen, *maxencode; local
328 while (outlen > 0)
333 &outbuf[total], outlen);
[all …]
H A Dsasl.c237 iptostring(addr, addrlen, out, outlen) in iptostring() argument
241 unsigned outlen;
278 if (outlen < strlen(hbuf) + strlen(pbuf) + 2)
283 sm_snprintf(out, outlen, "%s;%s", hbuf, pbuf);
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/
H A Dkiconv_sc.c105 size_t *outlen, int flag, int *errno) in kiconvstr_to_gb18030() argument
213 size_t *outlen, int flag, int *errno) in kiconvstr_fr_gb18030() argument
230 obtail = ob + *outlen; in kiconvstr_fr_gb18030()
313 *outlen = obtail - ob; in kiconvstr_fr_gb18030()
335 size_t *outlen, int flag, int *errno) in kiconvstr_to_gbk() argument
432 size_t *outlen, int flag, int *errno) in kiconvstr_fr_gbk() argument
448 obtail = ob + *outlen; in kiconvstr_fr_gbk()
502 *outlen = obtail - ob; in kiconvstr_fr_gbk()
523 size_t *outlen, int flag, int *errno) in kiconvstr_to_euccn() argument
632 obtail = ob + *outlen; in kiconvstr_fr_euccn()
[all …]
/illumos-gate/usr/src/uts/common/kiconv/kiconv_ko/
H A Dkiconv_ko.c170 size_t *outlen, int flag, int *errno) in kiconvstr_fr_euckr() argument
186 obtail = ob + *outlen; in kiconvstr_fr_euckr()
242 *outlen = obtail - ob; in kiconvstr_fr_euckr()
338 size_t *outlen, int flag, int *errno) in kiconvstr_fr_uhc() argument
354 obtail = ob + *outlen; in kiconvstr_fr_uhc()
410 *outlen = obtail - ob; in kiconvstr_fr_uhc()
442 size_t *outlen, int flag, int *errno) in kiconvstr_to_euckr() argument
445 (uchar_t *)outarray, outlen, flag, errno, utf8_to_euckr); in kiconvstr_to_euckr()
453 size_t *outlen, int flag, int *errno) in kiconvstr_to_uhc() argument
456 (uchar_t *)outarray, outlen, flag, errno, utf8_to_uhc); in kiconvstr_to_uhc()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpbkdf2.c64 CK_ULONG outlen, passlen; in krb5int_pbkdf2_hmac_sha1() local
96 outlen = (CK_ULONG)out->length; in krb5int_pbkdf2_hmac_sha1()
97 tmpl[attrs].pValue = &outlen; in krb5int_pbkdf2_hmac_sha1()
98 tmpl[attrs].ulValueLen = sizeof (outlen); in krb5int_pbkdf2_hmac_sha1()
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcopy.c43 copystr(const char *src, char *dst, size_t max_len, size_t *outlen) in copystr() argument
54 if (outlen != NULL) in copystr()
55 *outlen = copied; in copystr()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb3_encrypt_kcf.c215 size_t outlen; in smb3_encrypt_final() local
240 outlen = out.cd_length - SMB2_SIG_SIZE; in smb3_encrypt_final()
243 outlen = out.cd_offset - SMB2_SIG_SIZE; in smb3_encrypt_final()
246 if (outlen > 0) in smb3_encrypt_final()
248 ctxp->output.cd_offset, outlen); in smb3_encrypt_final()
249 bcopy(buf + outlen, digest16, SMB2_SIG_SIZE); in smb3_encrypt_final()
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dc_literal.c125 size_t outlen = 0; in conv_str_to_c_literal() local
128 outlen++; in conv_str_to_c_literal()
129 (*outfunc)(start, outlen, uvalue); in conv_str_to_c_literal()

12345