Home
last modified time | relevance | path

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

1234

/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/openssh/
Dhash.c30 int crypto_hash_sha512(unsigned char *out,const unsigned char *in,unsigned long long inlen) in crypto_hash_sha512() argument
35 unsigned long long bytes = inlen; in crypto_hash_sha512()
39 blocks(h,in,inlen); in crypto_hash_sha512()
40 in += inlen; in crypto_hash_sha512()
41 inlen &= 127; in crypto_hash_sha512()
42 in -= inlen; in crypto_hash_sha512()
44 for (i = 0;i < inlen;++i) padded[i] = in[i]; in crypto_hash_sha512()
45 padded[inlen] = 0x80; in crypto_hash_sha512()
47 if (inlen < 112) { in crypto_hash_sha512()
48 for (i = inlen + 1;i < 119;++i) padded[i] = 0; in crypto_hash_sha512()
[all …]
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/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/python/cpython3/Modules/_blake2/impl/
Dblake2.h125 int blake2s_update( blake2s_state *S, const uint8_t *in, uint64_t inlen );
131 int blake2b_update( blake2b_state *S, const uint8_t *in, uint64_t inlen );
136 int blake2sp_update( blake2sp_state *S, const uint8_t *in, uint64_t inlen );
141 int blake2bp_update( blake2bp_state *S, const uint8_t *in, uint64_t inlen );
145 …out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen );
146 …out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen );
148 …out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen );
149 …out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen );
151 …*out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen ) in blake2() argument
153 return blake2b( out, in, key, outlen, inlen, keylen ); in blake2()
Dblake2s.c304 int blake2s_update( blake2s_state *S, const uint8_t *in, uint64_t inlen ) in blake2s_update() argument
306 while( inlen > 0 ) in blake2s_update()
311 if( inlen > fill ) in blake2s_update()
320 inlen -= fill; in blake2s_update()
324 memcpy( S->buf + left, in, inlen ); in blake2s_update()
325 S->buflen += inlen; /* Be lazy, do not compress */ in blake2s_update()
326 in += inlen; in blake2s_update()
327 inlen -= inlen; in blake2s_update()
367 …*out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen ) in blake2s() argument
372 if ( NULL == in && inlen > 0 ) return -1; in blake2s()
[all …]
Dblake2s-ref.c281 int blake2s_update( blake2s_state *S, const uint8_t *in, uint64_t inlen ) in blake2s_update() argument
283 while( inlen > 0 ) in blake2s_update()
288 if( inlen > fill ) in blake2s_update()
297 inlen -= fill; in blake2s_update()
301 memcpy( S->buf + left, in, (size_t)inlen ); in blake2s_update()
302 S->buflen += (size_t)inlen; /* Be lazy, do not compress */ in blake2s_update()
303 in += inlen; in blake2s_update()
304 inlen -= inlen; in blake2s_update()
343 …*out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen ) in blake2s() argument
348 if ( NULL == in && inlen > 0 ) return -1; in blake2s()
[all …]
Dblake2b-ref.c290 int blake2b_update( blake2b_state *S, const uint8_t *in, uint64_t inlen ) in blake2b_update() argument
292 while( inlen > 0 ) in blake2b_update()
297 if( inlen > fill ) in blake2b_update()
306 inlen -= fill; in blake2b_update()
310 memcpy( S->buf + left, in, (size_t)inlen ); in blake2b_update()
311 S->buflen += (size_t)inlen; /* Be lazy, do not compress */ in blake2b_update()
312 in += inlen; in blake2b_update()
313 inlen -= inlen; in blake2b_update()
353 …*out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen ) in blake2b() argument
358 if ( NULL == in && inlen > 0 ) return -1; in blake2b()
[all …]
Dblake2b.c330 int blake2b_update( blake2b_state *S, const uint8_t *in, uint64_t inlen ) in blake2b_update() argument
332 while( inlen > 0 ) in blake2b_update()
337 if( inlen > fill ) in blake2b_update()
346 inlen -= fill; in blake2b_update()
350 memcpy( S->buf + left, in, inlen ); in blake2b_update()
351 S->buflen += inlen; /* Be lazy, do not compress */ in blake2b_update()
352 in += inlen; in blake2b_update()
353 inlen -= inlen; in blake2b_update()
386 …*out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen ) in blake2b() argument
391 if ( NULL == in && inlen > 0 ) return -1; in blake2b()
[all …]
/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 assert(err == inlen); in main()
/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/u-boot/arch/x86/lib/
Dscu.c86 u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_cmd() argument
90 for (i = 0; i < inlen; i++) in scu_ipc_cmd()
93 scu_ipc_send_command(regs, (inlen << 16) | (sub << 12) | cmd); in scu_ipc_cmd()
132 int scu_ipc_command(u32 cmd, u32 sub, u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_command() argument
144 return scu_ipc_cmd(scu->regs, cmd, sub, in, inlen, out, outlen); in scu_ipc_command()
/external/curl/lib/
Dsha256.c185 unsigned long inlen) in SHA256_Update() argument
191 while(inlen > 0) { in SHA256_Update()
192 if(md->curlen == 0 && inlen >= block_size) { in SHA256_Update()
197 inlen -= block_size; in SHA256_Update()
200 n = CURLMIN(inlen, (block_size - md->curlen)); in SHA256_Update()
204 inlen -= n; in SHA256_Update()
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/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/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/e2fsprogs/lib/ext2fs/
Dsha256.c135 static void sha256_process(struct hash_state * md, const unsigned char *in, unsigned long inlen) in sha256_process() argument
139 while (inlen > 0) { in sha256_process()
140 if (md->sha256.curlen == 0 && inlen >= SHA256_BLOCKSIZE) { in sha256_process()
144 inlen -= SHA256_BLOCKSIZE; in sha256_process()
146 n = MIN(inlen, (SHA256_BLOCKSIZE - md->sha256.curlen)); in sha256_process()
150 inlen -= n; in sha256_process()
Dsha512.c208 unsigned long inlen) in sha512_process() argument
212 while (inlen > 0) { in sha512_process()
213 if (md->sha512.curlen == 0 && inlen >= SHA512_BLOCKSIZE) { in sha512_process()
217 inlen -= SHA512_BLOCKSIZE; in sha512_process()
219 n = MIN(inlen, (SHA512_BLOCKSIZE - md->sha512.curlen)); in sha512_process()
224 inlen -= n; in sha512_process()
/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);
/external/zlib/src/contrib/puff/
Dpuff.c106 unsigned long inlen; /* available input at in */ member
133 if (s->incnt == s->inlen) in bits()
173 if (s->incnt + 4 > s->inlen) in stored()
182 if (s->incnt + len > s->inlen) in stored()
298 if (s->incnt == s->inlen) in decode()
809 s.inlen = *sourcelen; in puff()
/external/f2fs-tools/tools/
Dsha512.c228 unsigned long inlen) in sha512_process() argument
232 while (inlen > 0) { in sha512_process()
233 if (md->sha512.curlen == 0 && inlen >= SHA512_BLOCKSIZE) { in sha512_process()
237 inlen -= SHA512_BLOCKSIZE; in sha512_process()
239 n = MIN(inlen, (SHA512_BLOCKSIZE - md->sha512.curlen)); in sha512_process()
244 inlen -= n; in sha512_process()

1234