Home
last modified time | relevance | path

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

/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/
A Dcrypto_adapter.c24 uint8_t fill = 16 - (inlen) % 16; in crypto_adapter_encrypt_cbc()
29 fill_buff = (uint8_t *)aos_malloc(inlen + fill); in crypto_adapter_encrypt_cbc()
33 memcpy(fill_buff, in, inlen); in crypto_adapter_encrypt_cbc()
35 fill_buff[inlen + i] = fill; in crypto_adapter_encrypt_cbc()
38 enc_len = inlen+fill; in crypto_adapter_encrypt_cbc()
77 encrypt_data = (uint8_t *)aos_malloc(inlen + TC_AES_BLOCK_SIZE); in crypto_adapter_decrypt_cbc()
84 memcpy(encrypt_data + TC_AES_BLOCK_SIZE, in, inlen); in crypto_adapter_decrypt_cbc()
86 ret = utils_tc_cbc_mode_decrypt(out, inlen, in crypto_adapter_decrypt_cbc()
92 fill = out[inlen - 1]; in crypto_adapter_decrypt_cbc()
93 *out_len = inlen - fill; in crypto_adapter_decrypt_cbc()
[all …]
A Dcbc_mode.c38 unsigned int inlen, const uint8_t *iv, in utils_tc_cbc_mode_encrypt() argument
49 inlen == 0 || in utils_tc_cbc_mode_encrypt()
51 (inlen % TC_AES_BLOCK_SIZE) != 0 || in utils_tc_cbc_mode_encrypt()
53 outlen != inlen + TC_AES_BLOCK_SIZE) { in utils_tc_cbc_mode_encrypt()
63 for (n = m = 0; n < inlen; ++n) { in utils_tc_cbc_mode_encrypt()
78 unsigned int inlen, const uint8_t *iv, in utils_tc_cbc_mode_decrypt() argument
90 inlen == 0 || in utils_tc_cbc_mode_decrypt()
92 (inlen % TC_AES_BLOCK_SIZE) != 0 || in utils_tc_cbc_mode_decrypt()
94 outlen != inlen) { in utils_tc_cbc_mode_decrypt()
104 for (n = m = 0; n < inlen; ++n) { in utils_tc_cbc_mode_decrypt()
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Dcbc_mode.c38 unsigned int inlen, const uint8_t *iv, in tc_cbc_mode_encrypt() argument
49 inlen == 0 || in tc_cbc_mode_encrypt()
51 (inlen % TC_AES_BLOCK_SIZE) != 0 || in tc_cbc_mode_encrypt()
53 outlen != inlen + TC_AES_BLOCK_SIZE) { in tc_cbc_mode_encrypt()
63 for (n = m = 0; n < inlen; ++n) { in tc_cbc_mode_encrypt()
78 unsigned int inlen, const uint8_t *iv, in tc_cbc_mode_decrypt() argument
90 inlen == 0 || in tc_cbc_mode_decrypt()
92 (inlen % TC_AES_BLOCK_SIZE) != 0 || in tc_cbc_mode_decrypt()
94 outlen != inlen - TC_AES_BLOCK_SIZE) { in tc_cbc_mode_decrypt()
104 for (n = m = 0; n < inlen; ++n) { in tc_cbc_mode_decrypt()
A Dctr_mode.c38 unsigned int inlen, uint8_t *ctr, const TCAesKeySched_t sched) in tc_ctr_mode() argument
51 inlen == 0 || in tc_ctr_mode()
53 outlen != inlen) { in tc_ctr_mode()
63 for (i = 0; i < inlen; ++i) { in tc_ctr_mode()
A Dccm_mode.c94 unsigned int inlen, uint8_t *ctr, const TCAesKeySched_t sched) in ccm_ctr_mode() argument
107 inlen == 0 || in ccm_ctr_mode()
109 outlen != inlen) { in ccm_ctr_mode()
118 for (i = 0; i < inlen; ++i) { in ccm_ctr_mode()
/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_npn.c30 const unsigned char *in, unsigned int inlen, in select_next_protocol() argument
34 for (i = 0; i + keylen <= inlen; i += (unsigned int)(in[i] + 1)) { in select_next_protocol()
48 const unsigned char *in, unsigned int inlen) in nghttp2_select_next_protocol() argument
50 if (select_next_protocol(out, outlen, in, inlen, NGHTTP2_PROTO_ALPN, in nghttp2_select_next_protocol()
54 if (select_next_protocol(out, outlen, in, inlen, NGHTTP2_HTTP_1_1_ALPN, in nghttp2_select_next_protocol()
A Dnghttp2.h3008 size_t inlen);
4625 unsigned int inlen);
5047 size_t inlen, int in_final);
5133 const uint8_t *in, size_t inlen,
A Dnghttp2_hd.h360 const uint8_t *in, size_t inlen, int in_final);
A Dnghttp2_hd.c1880 int *inflate_flags, uint8_t *in, size_t inlen, in nghttp2_hd_inflate_hd() argument
1883 return nghttp2_hd_inflate_hd2(inflater, nv_out, inflate_flags, in, inlen, in nghttp2_hd_inflate_hd()
1889 const uint8_t *in, size_t inlen, int in_final) in nghttp2_hd_inflate_hd2() argument
1894 rv = nghttp2_hd_inflate_hd_nv(inflater, &hd_nv, inflate_flags, in, inlen, in nghttp2_hd_inflate_hd2()
1916 const uint8_t *in, size_t inlen, int in_final) in nghttp2_hd_inflate_hd_nv() argument
1920 const uint8_t *last = in + inlen; in nghttp2_hd_inflate_hd_nv()
A Dnghttp2_session.c3661 size_t *readlen_ptr, uint8_t *in, size_t inlen, in inflate_header_block() argument
3683 DEBUGF("recv: decoding header block %zu bytes\n", inlen); in inflate_header_block()
3687 &inflate_flags, in, inlen, final); in inflate_header_block()
3716 inlen -= (size_t)proclen; in inflate_header_block()
3801 if ((inflate_flags & NGHTTP2_HD_INFLATE_EMIT) == 0 && inlen == 0) { in inflate_header_block()
5481 size_t inlen) in nghttp2_session_mem_recv() argument
5483 const uint8_t *first = in, *last = in + inlen; in nghttp2_session_mem_recv()
5505 return (ssize_t)inlen; in nghttp2_session_mem_recv()
5511 readlen = nghttp2_min(inlen, iframe->payloadleft); in nghttp2_session_mem_recv()
5559 return (ssize_t)inlen; in nghttp2_session_mem_recv()
[all …]
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/
A Dcbc_mode.h111 unsigned int inlen, const uint8_t *iv,
144 unsigned int inlen, const uint8_t *iv,
A Dctr_mode.h102 unsigned int inlen, uint8_t *ctr, const TCAesKeySched_t sched);
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/tinycrypt/
A Dcbc_mode.h111 unsigned int inlen, const uint8_t *iv,
144 unsigned int inlen, const uint8_t *iv,
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/multimedia/speech/inc/
A Dbuffer_manager.h30 BufferManager *buffer_manager_create(int inlen, int outlen, int sample_size);
34 BufferManagerStatus buffer_manager_process(BufferManager *st, void *inbuf, int inlen, void *outbuf,…
/AliOS-Things-master/components/ucamera/src/device/wifi/dechunk/
A Ddechunk.c87 int dechunk(void *input, size_t inlen) in dechunk() argument
92 if (NULL == input || inlen == 0) in dechunk()
96 size_t data_len = inlen; in dechunk()
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/puff/
A 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()
/AliOS-Things-master/components/ucamera/include/device/wifi/
A Ddechunk.h20 int dechunk(void *input, size_t inlen);
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Deap.c345 b64enc(bs, inp, inlen, outp) in b64enc() argument
348 int inlen;
353 while (inlen > 0) {
355 inlen--;
393 b64dec(bs, inp, inlen, outp) in b64dec() argument
396 int inlen;
402 while (inlen > 0) {
406 inlen--;
2078 if (inlen < EAP_HEADERLEN) { in eap_input()
2087 EAP_HEADERLEN, inlen); in eap_input()
[all …]

Completed in 39 milliseconds