Home
last modified time | relevance | path

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

12345

/external/libxml2/
Dencoding.c173 asciiToUTF8(unsigned char* out, int *outlen, in asciiToUTF8() argument
178 unsigned char* outend = out + *outlen; in asciiToUTF8()
183 while ((in < inend) && (out - outstart + 5 < *outlen)) { in asciiToUTF8()
191 *outlen = out - outstart; in asciiToUTF8()
198 *outlen = out - outstart; in asciiToUTF8()
200 return(*outlen); in asciiToUTF8()
220 UTF8Toascii(unsigned char* out, int *outlen, in UTF8Toascii() argument
230 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8Toascii()
235 *outlen = 0; in UTF8Toascii()
240 outend = out + (*outlen); in UTF8Toascii()
[all …]
DtestHTML.c380 int outlen, attlen; in startElementDebug() local
383 outlen = sizeof output - 1; in startElementDebug()
384 htmlEncodeEntities(output, &outlen, att, &attlen, '\''); in startElementDebug()
385 output[outlen] = 0; in startElementDebug()
422 int inlen = len, outlen = 30; in charactersDebug() local
424 htmlEncodeEntities(output, &outlen, ch, &inlen, 0); in charactersDebug()
425 output[outlen] = 0; in charactersDebug()
443 int inlen = len, outlen = 30; in cdataDebug() local
445 htmlEncodeEntities(output, &outlen, ch, &inlen, 0); in cdataDebug()
446 output[outlen] = 0; in cdataDebug()
/external/boringssl/src/crypto/x509/
Da_strex.c166 int i, outlen, len; in do_buf() local
171 outlen = 0; in do_buf()
213 outlen += len; in do_buf()
218 outlen += len; in do_buf()
221 return outlen; in do_buf()
257 int outlen, der_len; in do_dump() local
262 outlen = do_hex_dump(io_ch, arg, str->data, str->length); in do_dump()
263 if(outlen < 0) return -1; in do_dump()
264 return outlen + 1; in do_dump()
273 outlen = do_hex_dump(io_ch, arg, der_buf, der_len); in do_dump()
[all …]
/external/curl/tests/unit/
Dunit1396.c41 int outlen; member
81 int outlen; variable
84 &outlen);
87 fail_unless(outlen == list1[i].outlen, "wrong output length returned");
88 fail_unless(!memcmp(out, list1[i].out, list1[i].outlen),
97 int outlen; variable
101 outlen = (int)strlen(out);
102 fail_unless(outlen == list2[i].outlen, "wrong output length returned");
103 fail_unless(!memcmp(out, list2[i].out, list2[i].outlen),
/external/protobuf/src/google/protobuf/testing/
Dzcgzip.cc60 int outlen; in main() local
63 ok = out.Next(&outptr, &outlen); in main()
67 } while (outlen <= 0); in main()
68 readlen = read(STDIN_FILENO, outptr, outlen); in main()
70 out.BackUp(outlen); in main()
73 if (readlen < outlen) { in main()
74 out.BackUp(outlen - readlen); in main()
/external/squashfs-tools/squashfs-tools/
Dlzma_wrapper.c37 outlen = block_size - LZMA_HEADER_SIZE; in lzma_compress() local
40 res = LzmaCompress(dest + LZMA_HEADER_SIZE, &outlen, src, size, dest, in lzma_compress()
78 return outlen + LZMA_HEADER_SIZE; in lzma_compress()
86 size_t outlen, inlen = size - LZMA_HEADER_SIZE; in lzma_uncompress() local
89 outlen = s[LZMA_PROPS_SIZE] | in lzma_uncompress()
94 if(outlen > outsize) { in lzma_uncompress()
99 res = LzmaUncompress(dest, &outlen, src + LZMA_HEADER_SIZE, &inlen, src, in lzma_uncompress()
103 return outlen; in lzma_uncompress()
/external/curl/lib/
Dbase64.c101 unsigned char **outptr, size_t *outlen) in Curl_base64_decode() argument
113 *outlen = 0; in Curl_base64_decode()
166 *outlen = rawlen; in Curl_base64_decode()
174 char **outptr, size_t *outlen) in base64_encode() argument
188 *outlen = 0; in base64_encode()
257 *outlen = strlen(base64data); /* return the length of the new data */ in base64_encode()
281 char **outptr, size_t *outlen) in Curl_base64_encode() argument
283 return base64_encode(base64, data, inputbuff, insize, outptr, outlen); in Curl_base64_encode()
305 char **outptr, size_t *outlen) in Curl_base64url_encode() argument
307 return base64_encode(base64url, data, inputbuff, insize, outptr, outlen); in Curl_base64url_encode()
Dcurl_sasl.h160 char **outptr, size_t *outlen);
173 char **outptr, size_t *outlen);
185 size_t *outlen);
197 char **outptr, size_t *outlen);
214 char **outptr, size_t *outlen);
222 size_t *outlen);
Dcurl_base64.h27 char **outptr, size_t *outlen);
30 char **outptr, size_t *outlen);
33 unsigned char **outptr, size_t *outlen);
Dcurl_sasl.c302 char **outptr, size_t *outlen) in sasl_create_plain_message() argument
314 *outlen = 0; in sasl_create_plain_message()
328 outlen); in sasl_create_plain_message()
351 size_t *outlen) in sasl_create_login_message() argument
359 *outlen = (size_t) 1; in sasl_create_login_message()
363 *outlen = 0; in sasl_create_login_message()
368 return Curl_base64_encode(data, valuep, vlen, outptr, outlen); in sasl_create_login_message()
389 size_t *outlen) in sasl_create_external_message() argument
392 return sasl_create_login_message(data, user, outptr, outlen); in sasl_create_external_message()
411 size_t *outlen) in sasl_decode_cram_md5_message() argument
[all …]
/external/wpa_supplicant_8/src/tls/
Dpkcs1.c20 u8 *out, size_t *outlen) in pkcs1_generate_encryption_block() argument
35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
39 (unsigned long) *outlen, in pkcs1_generate_encryption_block()
83 u8 *out, size_t *outlen) in pkcs1_encrypt() argument
90 out, outlen) < 0) in pkcs1_encrypt()
93 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt()
99 u8 *out, size_t *outlen) in pkcs1_v15_private_key_decrypt() argument
104 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); in pkcs1_v15_private_key_decrypt()
108 if (*outlen < 2 || out[0] != 0 || out[1] != 2) in pkcs1_v15_private_key_decrypt()
113 end = out + *outlen; in pkcs1_v15_private_key_decrypt()
[all …]
/external/boringssl/src/crypto/ecdh/
Decdh.c77 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, in ECDH_compute_key() argument
80 size_t *outlen)) { in ECDH_compute_key() argument
133 if (kdf(buf, buflen, out, &outlen) == NULL) { in ECDH_compute_key()
139 if (buflen < outlen) { in ECDH_compute_key()
140 outlen = buflen; in ECDH_compute_key()
142 memcpy(out, buf, outlen); in ECDH_compute_key()
145 ret = outlen; in ECDH_compute_key()
/external/boringssl/src/crypto/asn1/
Da_mbstr.c97 int outform, outlen = 0; in ASN1_mbstring_ncopy() local
211 outlen = nchar; in ASN1_mbstring_ncopy()
216 outlen = nchar << 1; in ASN1_mbstring_ncopy()
221 outlen = nchar << 2; in ASN1_mbstring_ncopy()
226 outlen = 0; in ASN1_mbstring_ncopy()
227 traverse_string(in, len, inform, out_utf8, &outlen); in ASN1_mbstring_ncopy()
231 if(!(p = OPENSSL_malloc(outlen + 1))) { in ASN1_mbstring_ncopy()
236 dest->length = outlen; in ASN1_mbstring_ncopy()
238 p[outlen] = 0; in ASN1_mbstring_ncopy()
296 int *outlen; in out_utf8() local
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-rsa.c74 u8 *out, size_t *outlen) in crypto_public_key_encrypt_pkcs1_v15() argument
77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15()
83 u8 *out, size_t *outlen) in crypto_private_key_decrypt_pkcs1_v15() argument
86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15()
92 u8 *out, size_t *outlen) in crypto_private_key_sign_pkcs1() argument
95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1()
Dsha256-kdf.c31 u8 *out, size_t outlen) in hmac_sha256_kdf() argument
53 clen = outlen - pos; in hmac_sha256_kdf()
59 if (pos == outlen) in hmac_sha256_kdf()
63 os_memset(out, 0, outlen); in hmac_sha256_kdf()
71 os_memset(out, 0, outlen); in hmac_sha256_kdf()
Dsha256-tlsprf.c30 const u8 *seed, size_t seed_len, u8 *out, size_t outlen) in tls_prf_sha256() argument
56 while (pos < outlen) { in tls_prf_sha256()
60 clen = outlen - pos; in tls_prf_sha256()
Dcrypto_libtomcrypt.c488 u8 *out, size_t *outlen) in pkcs1_generate_encryption_block() argument
503 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
507 (unsigned long) *outlen, in pkcs1_generate_encryption_block()
551 u8 *out, size_t *outlen) in crypto_rsa_encrypt_pkcs1() argument
559 out, outlen) < 0) in crypto_rsa_encrypt_pkcs1()
562 len = *outlen; in crypto_rsa_encrypt_pkcs1()
569 *outlen = len; in crypto_rsa_encrypt_pkcs1()
577 u8 *out, size_t *outlen) in crypto_public_key_encrypt_pkcs1_v15() argument
580 out, outlen); in crypto_public_key_encrypt_pkcs1_v15()
586 u8 *out, size_t *outlen) in crypto_private_key_sign_pkcs1() argument
[all …]
/external/deqp/modules/gles31/functional/
Des31fDebugTests.cpp1688 int outlen = -1; in iterate() local
1756 gl.getObjectLabel(m_identifier, object, sizeof(buffer), &outlen, buffer); in iterate()
1758 if (outlen == 0) in iterate()
1831 int outlen = -1; in iterate() local
1840 gl.getObjectPtrLabel(sync, sizeof(buffer), &outlen, buffer); in iterate()
1842 if (outlen == 0) in iterate()
1879 int outlen = -1; in iterate() local
1895 outlen = -1; in iterate()
1896 gl.getObjectLabel(GL_SHADER, shader, sizeof(buffer), &outlen, buffer); in iterate()
1899 if (outlen != 0) in iterate()
[all …]
/external/curl/src/
Dtool_dirhie.c101 size_t outlen; in create_dir_hierarchy() local
103 outlen = strlen(outfile); in create_dir_hierarchy()
108 dirbuildup = malloc(outlen + 1); in create_dir_hierarchy()
124 snprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
129 snprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
/external/fonttools/Lib/fontTools/misc/
DfixedTools.py41 outlen = len(out)
42 if outlen < length:
43 out.append(max(lo[outlen], hi[outlen]))
/external/boringssl/src/crypto/evp/
Dp_rsa.c259 static int pkey_rsa_encrypt(EVP_PKEY_CTX *ctx, uint8_t *out, size_t *outlen, in pkey_rsa_encrypt() argument
266 *outlen = key_len; in pkey_rsa_encrypt()
270 if (*outlen < key_len) { in pkey_rsa_encrypt()
280 !RSA_encrypt(rsa, outlen, out, *outlen, rctx->tbuf, key_len, in pkey_rsa_encrypt()
287 return RSA_encrypt(rsa, outlen, out, *outlen, in, inlen, rctx->pad_mode); in pkey_rsa_encrypt()
291 size_t *outlen, const uint8_t *in, in pkey_rsa_decrypt() argument
298 *outlen = key_len; in pkey_rsa_decrypt()
302 if (*outlen < key_len) { in pkey_rsa_decrypt()
323 *outlen = message_len; in pkey_rsa_decrypt()
327 return RSA_decrypt(rsa, outlen, out, key_len, in, inlen, rctx->pad_mode); in pkey_rsa_decrypt()
/external/curl/tests/server/
Dgetpart.c249 int getpart(char **outbuf, size_t *outlen, in getpart() argument
279 *outlen = 0; in getpart()
295 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart()
329 error = decodedata(outbuf, outlen); in getpart()
346 error = decodedata(outbuf, outlen); in getpart()
430 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart()
445 *outlen = 0; in getpart()
/external/libxml2/include/libxml/
Dencoding.h101 typedef int (* xmlCharEncodingInputFunc)(unsigned char *out, int *outlen,
123 typedef int (* xmlCharEncodingOutputFunc)(unsigned char *out, int *outlen,
227 int *outlen,
233 int *outlen,
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Dg722_decode.c257 size_t outlen; in WebRtc_g722_decode() local
261 outlen = 0; in WebRtc_g722_decode()
369 amp[outlen++] = (int16_t) (rlow << 1); in WebRtc_g722_decode()
370 amp[outlen++] = (int16_t) (rhigh << 1); in WebRtc_g722_decode()
376 amp[outlen++] = (int16_t) (rlow << 1); in WebRtc_g722_decode()
396 amp[outlen++] = saturate(xout1 >> 11); in WebRtc_g722_decode()
397 amp[outlen++] = saturate(xout2 >> 11); in WebRtc_g722_decode()
401 return outlen; in WebRtc_g722_decode()
/external/sqlite/android/
DPhoneNumberUtilsTest.cpp63 int outlen; \
68 &outlen); \
69 out[outlen] = 0; \

12345