Home
last modified time | relevance | path

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

12345

/external/libxml2/
Dencoding.c177 const unsigned char* in, int *inlen) { in asciiToUTF8() argument
185 inend = in + (*inlen); in asciiToUTF8()
195 *inlen = processed - base; in asciiToUTF8()
202 *inlen = processed - base; in asciiToUTF8()
224 const unsigned char* in, int *inlen) { in UTF8Toascii() argument
233 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8Toascii()
239 *inlen = 0; in UTF8Toascii()
242 inend = in + (*inlen); in UTF8Toascii()
250 *inlen = processed - instart; in UTF8Toascii()
258 *inlen = processed - instart; in UTF8Toascii()
[all …]
/external/python/cpython3/Modules/_blake2/impl/
Dblake2-dispatch.c161 int blake2b_update_ref( blake2b_state *S, const uint8_t *in, size_t inlen );
163 …int blake2b_ref( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_…
170 int blake2b_update_sse2( blake2b_state *S, const uint8_t *in, size_t inlen );
172 …int blake2b_sse2( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size…
177 int blake2b_update_ssse3( blake2b_state *S, const uint8_t *in, size_t inlen );
179 …int blake2b_ssse3( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, siz…
184 int blake2b_update_sse41( blake2b_state *S, const uint8_t *in, size_t inlen );
186 …int blake2b_sse41( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, siz…
191 int blake2b_update_avx( blake2b_state *S, const uint8_t *in, size_t inlen );
193 …int blake2b_avx( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_…
[all …]
Dblake2s.c184 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen );
186 …int blake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t ke…
324 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ) in blake2s_update() argument
326 while( inlen > 0 ) in blake2s_update()
331 if( inlen > fill ) in blake2s_update()
340 inlen -= fill; in blake2s_update()
344 memcpy( S->buf + left, in, inlen ); in blake2s_update()
345 S->buflen += inlen; // Be lazy, do not compress in blake2s_update()
346 in += inlen; in blake2s_update()
347 inlen -= inlen; in blake2s_update()
[all …]
Dblake2b.c198 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen );
200 …int blake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t ke…
351 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen ) in blake2b_update() argument
353 while( inlen > 0 ) in blake2b_update()
358 if( inlen > fill ) in blake2b_update()
367 inlen -= fill; in blake2b_update()
371 memcpy( S->buf + left, in, inlen ); in blake2b_update()
372 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update()
373 in += inlen; in blake2b_update()
374 inlen -= inlen; in blake2b_update()
[all …]
Dblake2sp.c116 int blake2sp_update( blake2sp_state *S, const uint8_t *in, size_t inlen ) in blake2sp_update() argument
121 if( left && inlen >= fill ) in blake2sp_update()
129 inlen -= fill; in blake2sp_update()
143 size_t inlen__ = inlen; in blake2sp_update()
155 in += inlen - inlen % ( PARALLELISM_DEGREE * BLAKE2S_BLOCKBYTES ); in blake2sp_update()
156 inlen %= PARALLELISM_DEGREE * BLAKE2S_BLOCKBYTES; in blake2sp_update()
158 if( inlen > 0 ) in blake2sp_update()
159 memcpy( S->buf + left, in, inlen ); in blake2sp_update()
161 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2sp_update()
194 int blake2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t ke… in blake2sp() argument
[all …]
Dblake2bp.c119 int blake2bp_update( blake2bp_state *S, const uint8_t *in, size_t inlen ) in blake2bp_update() argument
124 if( left && inlen >= fill ) in blake2bp_update()
132 inlen -= fill; in blake2bp_update()
146 size_t inlen__ = inlen; in blake2bp_update()
158 in += inlen - inlen % ( PARALLELISM_DEGREE * BLAKE2B_BLOCKBYTES ); in blake2bp_update()
159 inlen %= PARALLELISM_DEGREE * BLAKE2B_BLOCKBYTES; in blake2bp_update()
161 if( inlen > 0 ) in blake2bp_update()
162 memcpy( S->buf + left, in, inlen ); in blake2bp_update()
164 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2bp_update()
196 int blake2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t ke… in blake2bp() argument
[all …]
Dblake2b-ref.c154 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen );
156 …int blake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t ke…
294 int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen ) in blake2b_update() argument
296 while( inlen > 0 ) in blake2b_update()
301 if( inlen > fill ) in blake2b_update()
310 inlen -= fill; in blake2b_update()
314 memcpy( S->buf + left, in, inlen ); in blake2b_update()
315 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2b_update()
316 in += inlen; in blake2b_update()
317 inlen -= inlen; in blake2b_update()
[all …]
Dblake2s-ref.c147 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen );
149 …int blake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t ke…
284 int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen ) in blake2s_update() argument
286 while( inlen > 0 ) in blake2s_update()
291 if( inlen > fill ) in blake2s_update()
300 inlen -= fill; in blake2s_update()
304 memcpy( S->buf + left, in, inlen ); in blake2s_update()
305 S->buflen += ( uint32_t ) inlen; // Be lazy, do not compress in blake2s_update()
306 in += inlen; in blake2s_update()
307 inlen -= inlen; in blake2s_update()
[all …]
Dblake2.h146 BLAKE2_API int blake2s_update( blake2s_state *S, const uint8_t *in, size_t inlen );
152 BLAKE2_API int blake2b_update( blake2b_state *S, const uint8_t *in, size_t inlen );
157 BLAKE2_API int blake2sp_update( blake2sp_state *S, const uint8_t *in, size_t inlen );
162 BLAKE2_API int blake2bp_update( blake2bp_state *S, const uint8_t *in, size_t inlen );
166 …ake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
167 …ake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
169 …ke2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
170 …ke2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
/external/toybox/toys/posix/
Diconv.c38 size_t outlen, inlen = 0; in do_iconv() local
44 if (readlen && 0>(readlen = read(fd, in+inlen, 2048-inlen))) { in do_iconv()
48 inlen += readlen; in do_iconv()
49 if (!inlen) break; in do_iconv()
52 iconv(TT.ic, &in, &inlen, &out, &outlen); in do_iconv()
57 inlen--; in do_iconv()
60 memmove(toybuf, in, inlen); in do_iconv()
/external/protobuf/src/google/protobuf/testing/
Dzcgunzip.cc67 int inlen; in main() local
69 ok = in.Next(&inptr, &inlen); in main()
73 if (inlen > 0) { in main()
74 int err = write(STDOUT_FILENO, inptr, inlen); in main()
75 if (err != inlen) { in main()
/external/openssh/
Dxmss_hash.c41 …ar *key, unsigned int keylen, const unsigned char *in, unsigned long long inlen, unsigned int n){ in core_hash_SHA2() argument
43 unsigned char buf[inlen + n + keylen]; in core_hash_SHA2()
54 for (i=0; i < inlen; i++) { in core_hash_SHA2()
59 SHA256(buf, inlen + keylen + n, out); in core_hash_SHA2()
64 SHA512(buf, inlen + keylen + n, out); in core_hash_SHA2()
82 int h_msg(unsigned char *out, const unsigned char *in, unsigned long long inlen, const unsigned cha… in h_msg() argument
88 return core_hash_SHA2(out, 2, key, keylen, in, inlen, n); in h_msg()
Dhash.c20 unsigned long long inlen) in crypto_hash_sha512() argument
23 if (!EVP_Digest(in, inlen, out, NULL, EVP_sha512(), NULL)) in crypto_hash_sha512()
35 unsigned long long inlen) in crypto_hash_sha512() argument
41 SHA512Update(&ctx, in, inlen); in crypto_hash_sha512()
Dpoly1305.c34 poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsig… in poly1305_auth() argument
73 if (inlen < 16) goto poly1305_donna_atmost15bytes; in poly1305_auth()
76 inlen -= 16; in poly1305_auth()
104 if (inlen >= 16) goto poly1305_donna_16bytes; in poly1305_auth()
108 if (!inlen) goto poly1305_donna_finish; in poly1305_auth()
110 for (j = 0; j < inlen; j++) mp[j] = m[j]; in poly1305_auth()
113 inlen = 0; in poly1305_auth()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-rsa.c73 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() argument
77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15()
82 const u8 *in, size_t inlen, in crypto_private_key_decrypt_pkcs1_v15() argument
86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15()
91 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() argument
95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1()
Dsha256-internal.c149 unsigned long inlen) in sha256_process() argument
156 while (inlen > 0) { in sha256_process()
157 if (md->curlen == 0 && inlen >= SHA256_BLOCK_SIZE) { in sha256_process()
162 inlen -= SHA256_BLOCK_SIZE; in sha256_process()
164 n = MIN(inlen, (SHA256_BLOCK_SIZE - md->curlen)); in sha256_process()
168 inlen -= n; in sha256_process()
Dsha512-internal.c187 unsigned long inlen) in sha512_process() argument
194 while (inlen > 0) { in sha512_process()
195 if (md->curlen == 0 && inlen >= SHA512_BLOCK_SIZE) { in sha512_process()
200 inlen -= SHA512_BLOCK_SIZE; in sha512_process()
202 n = MIN(inlen, (SHA512_BLOCK_SIZE - md->curlen)); in sha512_process()
206 inlen -= n; in sha512_process()
Dcrypto_libtomcrypt.c491 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() argument
507 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
512 (unsigned long) inlen); in pkcs1_generate_encryption_block()
519 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
547 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block()
554 const u8 *in, size_t inlen, in crypto_rsa_encrypt_pkcs1() argument
562 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in crypto_rsa_encrypt_pkcs1()
580 const u8 *in, size_t inlen, in crypto_public_key_encrypt_pkcs1_v15() argument
583 return crypto_rsa_encrypt_pkcs1(2, &key->rsa, PK_PUBLIC, in, inlen, in crypto_public_key_encrypt_pkcs1_v15()
589 const u8 *in, size_t inlen, in crypto_private_key_sign_pkcs1() argument
[all …]
/external/wpa_supplicant_8/src/tls/
Dpkcs1.c19 const u8 *in, size_t inlen, in pkcs1_generate_encryption_block() argument
35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) { in pkcs1_generate_encryption_block()
40 (unsigned long) inlen); in pkcs1_generate_encryption_block()
47 ps_len = modlen - inlen - 3; in pkcs1_generate_encryption_block()
75 os_memcpy(pos, in, inlen); /* D */ in pkcs1_generate_encryption_block()
82 int use_private, const u8 *in, size_t inlen, in pkcs1_encrypt() argument
89 if (pkcs1_generate_encryption_block(block_type, modlen, in, inlen, in pkcs1_encrypt()
98 const u8 *in, size_t inlen, in pkcs1_v15_private_key_decrypt() argument
104 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); in pkcs1_v15_private_key_decrypt()
/external/libwebsockets/lib/tls/
Dtls.c33 const unsigned char *in, unsigned int inlen, void *arg) in alpn_cb() argument
39 alpn_ctx->len, in, inlen) != in alpn_cb()
245 const char *inbuf, lws_filepos_t inlen, in lws_tls_alloc_pem_to_der_file() argument
259 len = inlen; in lws_tls_alloc_pem_to_der_file()
269 pem = lws_malloc((size_t)inlen, "alloc_der"); in lws_tls_alloc_pem_to_der_file()
273 memcpy(pem, inbuf, (size_t)inlen); in lws_tls_alloc_pem_to_der_file()
276 *amount = inlen; in lws_tls_alloc_pem_to_der_file()
285 pem = lws_malloc(((size_t)inlen * 3) / 4, "alloc_der"); in lws_tls_alloc_pem_to_der_file()
/external/libwebsockets/plugins/ssh-base/crypto/
Dpoly1305.c29 const unsigned char *m, size_t inlen, in poly1305_auth() argument
70 if (inlen < 16) in poly1305_auth()
75 inlen -= 16; in poly1305_auth()
112 if (inlen >= 16) in poly1305_auth()
117 if (!inlen) in poly1305_auth()
120 for (j = 0; j < inlen; j++) in poly1305_auth()
125 inlen = 0; in poly1305_auth()
/external/libxml2/include/libxml/
Dencoding.h102 const unsigned char *in, int *inlen);
124 const unsigned char *in, int *inlen);
234 int *inlen);
240 int *inlen);
/external/python/cpython3/Modules/cjkcodecs/
D_codecs_hk.c41 while (*inpos < inlen) { in ENCODER()
60 if (inlen - *inpos >= 2) in ENCODER()
65 if (inlen - *inpos >= 2 && in ENCODER()
73 else if (inlen - *inpos < 2 && in ENCODER()
/external/curl/lib/
Ddotdot.c55 size_t inlen = strlen(input); in Curl_dedotdotify() local
57 size_t clen = inlen; /* the length of the cloned input */ in Curl_dedotdotify()
58 char *out = malloc(inlen + 1); in Curl_dedotdotify()
/external/curl/tests/unit/
Dunit1396.c43 int inlen; member
87 list1[i].in, list1[i].inlen,
102 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);

12345