Home
last modified time | relevance | path

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

12

/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/
A Dcbc_mode.c37 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_encrypt() argument
50 outlen == 0 || in tc_cbc_mode_encrypt()
52 (outlen % TC_AES_BLOCK_SIZE) != 0 || in tc_cbc_mode_encrypt()
53 outlen != inlen + TC_AES_BLOCK_SIZE) { in tc_cbc_mode_encrypt()
77 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_decrypt() argument
91 outlen == 0 || in tc_cbc_mode_decrypt()
93 (outlen % TC_AES_BLOCK_SIZE) != 0 || in tc_cbc_mode_decrypt()
94 outlen != inlen - TC_AES_BLOCK_SIZE) { in tc_cbc_mode_decrypt()
A Dhmac_prng.c177 int tc_hmac_prng_generate(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng) in tc_hmac_prng_generate() argument
184 outlen == 0 || in tc_hmac_prng_generate()
185 outlen > MAX_OUT) { in tc_hmac_prng_generate()
193 while (outlen != 0) { in tc_hmac_prng_generate()
199 bufferlen = (TC_SHA256_DIGEST_SIZE > outlen) ? in tc_hmac_prng_generate()
200 outlen : TC_SHA256_DIGEST_SIZE; in tc_hmac_prng_generate()
204 outlen = (outlen > TC_SHA256_DIGEST_SIZE) ? in tc_hmac_prng_generate()
205 (outlen - TC_SHA256_DIGEST_SIZE) : 0; in tc_hmac_prng_generate()
A Dctr_mode.c37 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_ctr_mode() argument
52 outlen == 0 || in tc_ctr_mode()
53 outlen != inlen) { in tc_ctr_mode()
A Dctr_prng.c209 unsigned int outlen) in tc_ctr_prng_generate() argument
219 if ((0 != ctx) && (0 != out) && (outlen < MAX_BYTES_PER_REQ)) { in tc_ctr_prng_generate()
239 while (len < outlen) { in tc_ctr_prng_generate()
240 unsigned int blocklen = outlen - len; in tc_ctr_prng_generate()
A Dccm_mode.c93 static int ccm_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in ccm_ctr_mode() argument
108 outlen == 0 || in ccm_ctr_mode()
109 outlen != inlen) { in ccm_ctr_mode()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/
A Dcbc_mode.c37 int utils_tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in utils_tc_cbc_mode_encrypt() argument
50 outlen == 0 || in utils_tc_cbc_mode_encrypt()
52 (outlen % TC_AES_BLOCK_SIZE) != 0 || in utils_tc_cbc_mode_encrypt()
53 outlen != inlen + TC_AES_BLOCK_SIZE) { in utils_tc_cbc_mode_encrypt()
77 int utils_tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in utils_tc_cbc_mode_decrypt() argument
91 outlen == 0 || in utils_tc_cbc_mode_decrypt()
93 (outlen % TC_AES_BLOCK_SIZE) != 0 || in utils_tc_cbc_mode_decrypt()
94 outlen != inlen) { in utils_tc_cbc_mode_decrypt()
A Dcrypto_adapter.c20 int crypto_adapter_encrypt_cbc(uint8_t *in, uint16_t inlen, uint8_t *out, uint16_t *outlen, uint8_t… in crypto_adapter_encrypt_cbc() argument
59 if (outlen) { in crypto_adapter_encrypt_cbc()
60 *outlen = enc_len; in crypto_adapter_encrypt_cbc()
98 …crypt(Encrypt_mode mode, uint8_t *in, uint16_t inlen, uint8_t *out, uint16_t *outlen, uint8_t *key) in crypto_adapter_encrypt() argument
102 return crypto_adapter_encrypt_cbc(in, inlen, out, outlen, key); in crypto_adapter_encrypt()
110 …crypt(Encrypt_mode mode, uint8_t *in, uint16_t inlen, uint8_t *out, uint16_t *outlen, uint8_t *key) in crypto_adapter_decrypt() argument
114 return crypto_adapter_decrypt_cbc(in, inlen, out, outlen, key); in crypto_adapter_decrypt()
/AliOS-Things-master/components/oss/src/encryption/
A DCipherOpenssl.cc66 int outlen = static_cast<int>(data.size() + EVP_MAX_BLOCK_LENGTH); in Encrypt() local
67 ByteBuffer out(static_cast<size_t>(outlen)); in Encrypt()
72 out.resize(outlen); in Encrypt()
93 int outlen = 0; in EncryptFinish() local
94 if (!EVP_EncryptFinal_ex(encryptCtx_, out.data(), &outlen)) { in EncryptFinish()
97 out.resize(static_cast<size_t>(outlen)); in EncryptFinish()
116 int outlen = static_cast<int>(data.size() + EVP_MAX_BLOCK_LENGTH); in Decrypt() local
117 ByteBuffer out(static_cast<size_t>(outlen)); in Decrypt()
122 out.resize(outlen); in Decrypt()
142 int outlen = 0; in DecryptFinish() local
[all …]
/AliOS-Things-master/components/linkkit/external/nghttp2/
A Dnghttp2_npn.c29 static int select_next_protocol(unsigned char **out, unsigned char *outlen, in select_next_protocol() argument
37 *outlen = in[i]; in select_next_protocol()
47 int nghttp2_select_next_protocol(unsigned char **out, unsigned char *outlen, 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()
/AliOS-Things-master/components/udisplay/example/
A Dudisplay_example.c18 static void set_brightness(char *pbuffer, int outlen, int argc, char **argv) in set_brightness() argument
28 static void get_brightness(char *pbuffer, int outlen, int argc, char **argv) in get_brightness() argument
37 static void enable_backlight(char *pbuffer, int outlen, int argc, char **argv) in enable_backlight() argument
49 static void disable_backlight(char *pbuffer, int outlen, int argc, char **argv) in disable_backlight() argument
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/
A Dcbc_mode.h110 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
143 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
A Dctr_mode.h101 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in,
A Dhmac_prng.h158 int tc_hmac_prng_generate(uint8_t *out, unsigned int outlen, TCHmacPrng_t prng);
A Dctr_prng.h152 unsigned int outlen);
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/crypto/tinycrypt/
A Dcbc_mode.h110 int utils_tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
143 int utils_tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
/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 …Status buffer_manager_process(BufferManager *st, void *inbuf, int inlen, void *outbuf, int outlen);
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Dupap.c532 int outlen; in upap_sauthreq() local
534 outlen = UPAP_HEADERLEN + 2 * sizeof (u_char) + in upap_sauthreq()
536 p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN +outlen), PPP_CTRL_PBUF_TYPE); in upap_sauthreq()
549 PUTSHORT(outlen, outp); in upap_sauthreq()
570 int outlen; in upap_sresp() local
572 outlen = UPAP_HEADERLEN + sizeof (u_char) + msglen; in upap_sresp()
573 p = pbuf_alloc(PBUF_RAW, (u16_t)(PPP_HDRLEN +outlen), PPP_CTRL_PBUF_TYPE); in upap_sresp()
586 PUTSHORT(outlen, outp); in upap_sresp()
A Deap.c351 int outlen = 0; local
362 outlen += 4;
367 return (outlen);
375 int outlen = 0; local
380 outlen = 2;
385 outlen = 3;
389 return (outlen);
399 int outlen = 0; local
410 outlen++;
414 return (outlen);
[all …]
A Dfsm.c774 int outlen; in fsm_sdata() local
779 outlen = datalen + HEADERLEN; in fsm_sdata()
781 p = pbuf_alloc(PBUF_RAW, (u16_t)(outlen + PPP_HDRLEN), PPP_CTRL_PBUF_TYPE); in fsm_sdata()
795 PUTSHORT(outlen, outp); in fsm_sdata()
/AliOS-Things-master/components/linkkit/iot_coap/server/
A DCoAPResource.c17 int CoAPPathMD5_sum(const char *path, int len, char outbuf[], int outlen) in CoAPPathMD5_sum() argument
20 if (!path || !len || !outbuf || !outlen) { in CoAPPathMD5_sum()
25 memcpy(outbuf, md5, outlen > 16 ? 16 : outlen); in CoAPPathMD5_sum()
A DCoAPResource.h34 int CoAPPathMD5_sum(const char *path, int len, char outbuf[], int outlen);
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/puff/
A Dpuff.c101 unsigned long outlen; /* available space at out */ member
185 if (s->outcnt + len > s->outlen) in stored()
466 if (s->outcnt == s->outlen) in codes()
491 if (s->outcnt + len > s->outlen) in codes()
804 s.outlen = *destlen; /* ignored if dest is NIL */ in puff()
/AliOS-Things-master/components/py_engine/engine/lib/uzlib/
A Ddefl_static.h35 int outlen, outsize; member
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/tools/
A Dpngfix.c3962 size_t outlen = strlen(*argv); in main() local
3971 if (prefixlen+outlen > FILENAME_MAX) in main()
3980 memcpy(temp_name+prefixlen, *argv, outlen); in main()
3981 outlen += prefixlen; in main()
3986 memcpy(temp_name, *argv, outlen); in main()
3988 temp_name[outlen] = 0; in main()
3994 if (outlen+suffixlen > FILENAME_MAX) in main()
4002 memcpy(temp_name+outlen, suffix, suffixlen); in main()
4003 outlen += suffixlen; in main()
4004 temp_name[outlen] = 0; in main()
/AliOS-Things-master/components/linkkit/dev_model/alcs/
A Dalcs_server.c25 uint32_t outlen; in utils_hmac_sha1_base64() local
29 (unsigned char *)digest, &outlen); in utils_hmac_sha1_base64()
30 *digest_len = outlen; in utils_hmac_sha1_base64()

Completed in 34 milliseconds

12