Home
last modified time | relevance | path

Searched refs:inlen (Results 1 – 25 of 84) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/kiconv/kiconv_emea/
H A Dkiconv_emea.c918 ibtail = ib + *inlen; in kiconvstr_to_sb()
1040 *inlen = ibtail - ib; in kiconvstr_to_sb()
1055 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_720()
1063 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_737()
1071 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_852()
1079 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_857()
1087 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_862()
1095 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_866()
1103 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_1250()
1274 ibtail = ib + *inlen; 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()
95 my_iconv(nls_toloc, &src, &inlen, &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()
123 size_t inlen, outlen; in nls_mem_toloc() local
133 inlen = outlen = size; in nls_mem_toloc()
135 my_iconv(nls_toloc, &s, &inlen, &p, &outlen); in nls_mem_toloc()
144 size_t inlen, outlen; in nls_mem_toext() local
152 inlen = outlen = size; in nls_mem_toext()
[all …]
H A Dutf_str.c220 size_t inlen, outlen, inbleft, outbleft; in utf8_str_to_upper_or_lower() local
231 inlen = inbleft = strlen(s); in utf8_str_to_upper_or_lower()
232 outlen = outbleft = inlen + 10; in utf8_str_to_upper_or_lower()
243 s += (inlen - inbleft); in utf8_str_to_upper_or_lower()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/hash_provider/
H A Dhash_ef_generic.c70 int inlen; in k5_ef_mac() local
77 inlen = K5ROUNDUP(input->length, 8); in k5_ef_mac()
78 outlen = inlen; in k5_ef_mac()
80 if (inlen != input->length) { in k5_ef_mac()
81 inbuf = (char *)malloc(inlen); in k5_ef_mac()
93 if (inlen != input->length) { in k5_ef_mac()
94 (void) memset(inbuf, 0, inlen); in k5_ef_mac()
100 inlen, key, in k5_ef_mac()
108 if (inlen != input->length && inbuf != NULL) in k5_ef_mac()
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dsaslutil.c122 int sasl_encode64(const char *_in, unsigned inlen, in sasl_encode64() argument
135 if (((inlen >0) && (in == NULL)) || _out == NULL) return SASL_BADPARAM; in sasl_encode64()
137 if ((inlen >0) && (in == NULL)) return SASL_BADPARAM; in sasl_encode64()
141 olen = (inlen + 2) / 3 * 4; in sasl_encode64()
151 while (inlen >= 3) { in sasl_encode64()
158 inlen -= 3; in sasl_encode64()
160 if (inlen > 0) { in sasl_encode64()
164 if (inlen > 1) oval |= in[1] >> 4; in sasl_encode64()
166 *out++ = (inlen < 2) ? '=' : basis_64[(in[1] << 2) & 0x3c]; in sasl_encode64()
189 int sasl_decode64(const char *in, unsigned inlen, in sasl_decode64() argument
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drds_opt.c81 int name, uint_t inlen, uchar_t *invalp, uint_t *outlenp, in rds_opt_set() argument
98 if (inlen == 0) { in rds_opt_set()
115 (optset_context == SETFN_OPTCOM_CHECKONLY && inlen != 0)); in rds_opt_set()
160 (void) bcopy(invalp, outvalp, inlen); in rds_opt_set()
162 *outlenp = inlen; in rds_opt_set()
/illumos-gate/usr/src/uts/common/os/
H A Dkiconv.c477 ibtail = ib + *inlen; in kiconvstr_to_sb()
591 *inlen = ibtail - ib; in kiconvstr_to_sb()
606 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_1252()
614 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_1()
622 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_15()
630 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_to_850()
650 ibtail = ib + *inlen; in kiconvstr_fr_sb()
706 *inlen = ibtail - ib; in kiconvstr_fr_sb()
721 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_fr_1252()
729 inlen, (uchar_t *)outarray, outlen, flag, errno)); in kiconvstr_fr_1()
[all …]
/illumos-gate/usr/src/uts/common/kiconv/kiconv_tc/
H A Dkiconv_tc.c233 ibtail = ib + *inlen; in kiconvstr_fr_big5_common()
288 *inlen = ibtail - ib; in kiconvstr_fr_big5_common()
312 return (kiconvstr_fr_big5_common((uchar_t *)inarray, inlen, in kiconvstr_fr_big5()
335 return kiconvstr_fr_big5_common((uchar_t *)inarray, inlen, in kiconvstr_fr_big5hkscs()
357 return kiconvstr_fr_big5_common((uchar_t *)inarray, inlen, in kiconvstr_fr_cp950hkscs()
482 ibtail = ib + *inlen; in kiconvstr_fr_euctw()
550 *inlen = ibtail - ib; in kiconvstr_fr_euctw()
574 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_big5()
596 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_euctw()
618 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_cp950hkscs()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dconn_opt.c1266 newlen = inlen; in conn_opt_set_ip()
1279 if (inlen == sizeof (int)) in conn_opt_set_ip()
1586 if (inlen != 0 && inlen != sizeof (struct in6_pktinfo)) in conn_opt_set_ipv6()
1588 if (inlen == 0) in conn_opt_set_ipv6()
1645 if (inlen != 0 && inlen != sizeof (int)) in conn_opt_set_ipv6()
1653 if (inlen != 0 && inlen != sizeof (int)) in conn_opt_set_ipv6()
1661 if (inlen != 0 && inlen != sizeof (sin6_t)) in conn_opt_set_ipv6()
1692 if (inlen != 0 && in conn_opt_set_ipv6()
1702 if (inlen != sizeof (int)) in conn_opt_set_ipv6()
1842 if (inlen == 0) { in conn_opt_set_ipv6()
[all …]
/illumos-gate/usr/src/uts/common/kiconv/kiconv_sc/
H A Dkiconv_sc.c107 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_gb18030()
229 ibtail = ib + *inlen; in kiconvstr_fr_gb18030()
312 *inlen = ibtail - ib; in kiconvstr_fr_gb18030()
334 kiconvstr_to_gbk(char *inarray, size_t *inlen, char *outarray, in kiconvstr_to_gbk() argument
337 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_gbk()
431 kiconvstr_fr_gbk(char *inarray, size_t *inlen, char *outarray, in kiconvstr_fr_gbk() argument
447 ibtail = ib + *inlen; in kiconvstr_fr_gbk()
501 *inlen = ibtail - ib; in kiconvstr_fr_gbk()
525 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_euccn()
631 ibtail = ib + *inlen; in kiconvstr_fr_euccn()
[all …]
/illumos-gate/usr/src/uts/common/kiconv/kiconv_ko/
H A Dkiconv_ko.c169 kiconvstr_fr_euckr(char *inarray, size_t *inlen, char *outarray, in kiconvstr_fr_euckr() argument
185 ibtail = ib + *inlen; in kiconvstr_fr_euckr()
241 *inlen = ibtail - ib; in kiconvstr_fr_euckr()
337 kiconvstr_fr_uhc(char *inarray, size_t *inlen, char *outarray, in kiconvstr_fr_uhc() argument
353 ibtail = ib + *inlen; in kiconvstr_fr_uhc()
409 *inlen = ibtail - ib; in kiconvstr_fr_uhc()
441 kiconvstr_to_euckr(char *inarray, size_t *inlen, char *outarray, in kiconvstr_to_euckr() argument
444 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_euckr()
452 kiconvstr_to_uhc(char *inarray, size_t *inlen, char *outarray, in kiconvstr_to_uhc() argument
455 return kiconvstr_utf8_to_cck((uchar_t *)inarray, inlen, in kiconvstr_to_uhc()
/illumos-gate/usr/src/test/crypto-tests/tests/common/
H A Dtestfuncs.c191 updatelen = args->inlen; in test_multi()
194 } else if (updatelen > args->inlen) { in test_multi()
203 updatelen = args->inlen; in test_multi()
219 while (offset < args->inlen) { in test_multi()
222 if (offset + updatelen > args->inlen) { in test_multi()
223 len = args->inlen - offset; in test_multi()
H A Dcryptotest_pkcs.c32 size_t inlen; member
69 op->inlen = arg->inlen; in cryptotest_init()
82 op->outlen = op->inlen; in cryptotest_init()
171 rv = C_Sign(op->hsession, op->in, op->inlen, in sign_single()
258 rv = C_Verify(op->hsession, op->in, op->inlen, op->out, op->outlen); in verify_single()
318 rv = C_Encrypt(op->hsession, op->in, op->inlen, in encrypt_single()
382 rv = C_Decrypt(op->hsession, op->in, op->inlen, in decrypt_single()
438 rv = C_Digest(op->hsession, op->in, op->inlen, in digest_single()
H A Dcryptotest_kcf.c33 size_t inlen; member
103 op->inlen = arg->inlen; in cryptotest_init()
115 op->outlen = op->inlen; in cryptotest_init()
214 mac.cm_datalen = op->inlen; in mac_single()
282 encrypt.ce_datalen = op->inlen; in encrypt_single()
355 decrypt.cd_encrlen = op->inlen; in decrypt_single()
419 digest.cd_datalen = op->inlen; in digest_single()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpem_encode.c470 get_line(unsigned char *in, int inlen, char *buf, int buflen) in get_line() argument
474 while ((i < inlen) && (i < buflen) && (in[i] != '\n')) { in get_line()
483 Pem2Der(unsigned char *in, int inlen, in Pem2Der() argument
494 if (in == NULL || inlen == 0 || out == NULL) in Pem2Der()
499 while (total < inlen) { in Pem2Der()
504 i = get_line(in + total, inlen - total, buf, sizeof (buf)); in Pem2Der()
542 while (total < inlen) { in Pem2Der()
544 i = get_line(in+total, inlen - total, buf, sizeof (buf)); in Pem2Der()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_opt_data.c543 if (inlen == 0) { in tcp_opt_set()
579 (optset_context == SETFN_OPTCOM_CHECKONLY && inlen != 0)); in tcp_opt_set()
647 *outlenp = inlen; in tcp_opt_set()
664 *outlenp = inlen; in tcp_opt_set()
675 *outlenp = inlen; in tcp_opt_set()
889 if (inlen < CC_ALGO_NAME_MAX) { in tcp_opt_set()
890 invalp[inlen] = '\0'; in tcp_opt_set()
1091 if (inlen == sizeof (struct in6_pktinfo)) { in tcp_opt_set()
1117 reterr = conn_opt_set(&coas, level, name, inlen, invalp, in tcp_opt_set()
1129 (void) bcopy(invalp, outvalp, inlen); in tcp_opt_set()
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dclnt_btcp.c404 int inlen = 0; in readtcp() local
416 while ((inlen = recvfrom(ct->ct_sock, buf, len, 0, &from, in readtcp()
421 inlen = -1; in readtcp()
426 printf("readtcp: inlen = %d\n", inlen); in readtcp()
428 switch (inlen) { in readtcp()
433 inlen = -1; /* it's really an error */ in readtcp()
441 return (inlen); in readtcp()
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/ccm/
H A Daes_ccm.c63 args.inlen = DATALEN[i] - AUTHLEN[i]; in main()
83 args.inlen = DATALEN[i] - AUTHLEN[i]; in main()
105 args.inlen = RESLEN[i] - AUTHLEN[i]; in main()
125 args.inlen = RESLEN[i] - AUTHLEN[i]; in main()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dconvutf8.c615 int inlen, wclen, outlen;
621 if ((inlen = strlen(instr)) <= 0)
627 wcstr = (LPWSTR) malloc( sizeof( WCHAR ) * (inlen+1) );
632 inlen, wcstr, inlen);
/illumos-gate/usr/src/lib/libsasl/include/
H A Dsaslutil.h36 LIBSASL_API int sasl_decode64(const char *in, unsigned inlen,
50 LIBSASL_API int sasl_encode64(const char *in, unsigned inlen,
/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()
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Dzh_CN.gbk%zh_CN.iso2022-CN.c690 size_t inlen, outlen; in main() local
705 inlen = s.st_size; in main()
706 in_tmp = inbuf = (char *)malloc(inlen); in main()
707 out_tmp = outbuf = (char*)malloc((outlen = inlen * 3)); in main()
712 if (read(fd, inbuf, inlen) != inlen) { in main()
721 if (_icv_iconv(st, &inbuf, &inlen, &outbuf, &outlen)) in main()
/illumos-gate/usr/src/uts/common/io/
H A Dcryptmod.c681 v1.iov_len = inlen; in kef_digest()
1580 size_t inlen; in aes_decrypt() local
1584 inlen = (size_t)MBLKL(mp); in aes_decrypt()
1662 size_t inlen; in aes_encrypt() local
1753 size_t inlen; in arcfour_hmac_md5_decrypt() local
1986 size_t inlen; in arcfour_hmac_md5_encrypt() local
2032 if (cipherlen > inlen) { in arcfour_hmac_md5_encrypt()
2242 size_t inlen; in des_cbc_encrypt() local
2261 if (cipherlen > inlen) { in des_cbc_encrypt()
2402 uint_t inlen, datalen; in des_cbc_decrypt() local
[all …]
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/ecb/
H A Daes_ecb.c35 .inlen = sizeof (ECB_DATA), in main()
55 args.inlen = RESLEN[i]; in main()
/illumos-gate/usr/src/test/crypto-tests/tests/modes/aes/cbc_pad/
H A Daes_cbc_pad.c55 args.inlen = DATALEN[i]; in main()
69 args.inlen = RESLEN[i]; in main()

1234