/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/ |
A D | ccm_mode.c | 140 unsigned int plen, TCCcmMode_t c) in tc_ccm_generation_encryption() argument 165 b[14] = (uint8_t)(plen >> 8); in tc_ccm_generation_encryption() 166 b[15] = (uint8_t)(plen); in tc_ccm_generation_encryption() 173 if (plen > 0) { in tc_ccm_generation_encryption() 184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption() 190 out += plen; in tc_ccm_generation_encryption() 205 if ((plen <= alen) || in tc_ccm_decryption_verification() 230 ccm_ctr_mode(out, plen - c->mlen, payload, plen - c->mlen, b, c->sched); in tc_ccm_decryption_verification() 248 b[15] = (uint8_t)(plen - c->mlen); in tc_ccm_decryption_verification() 255 if (plen > 0) { in tc_ccm_decryption_verification() [all …]
|
A D | hmac_prng.c | 114 unsigned int plen) in tc_hmac_prng_init() argument 120 plen > MAX_PLEN) { in tc_hmac_prng_init() 130 update(prng, personalization, plen); in tc_hmac_prng_init()
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | wifi_port.c | 221 int plen = 0; in _find_ap_from_scan_buf() local 223 while(plen < buflen){ in _find_ap_from_scan_buf() 228 len = (int)*(buf + plen); in _find_ap_from_scan_buf() 233 ssid = buf + plen + 14 ; in _find_ap_from_scan_buf() 259 plen += len; in _find_ap_from_scan_buf() 531 int plen = 0; in specified_scan_result_handler() local 533 while(plen < buflen) { in specified_scan_result_handler() 538 len = (int)*(buf + plen); in specified_scan_result_handler() 542 mac = buf + plen + 1; in specified_scan_result_handler() 558 ssid = buf + plen + 14 ; in specified_scan_result_handler() [all …]
|
/AliOS-Things-master/kernel/rhino/include/ |
A D | k_ringbuf.h | 70 RHINO_INLINE kstat_t ringbuf_queue_pop(k_ringbuf_t *p_ringbuf, void *pdata, size_t *plen) in ringbuf_queue_pop() argument 79 if (plen != NULL) { in ringbuf_queue_pop() 80 *plen = p_ringbuf->blk_size; in ringbuf_queue_pop()
|
/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/include/tinycrypt/ |
A D | ccm_mode.h | 159 unsigned int plen, TCCcmMode_t c); 204 unsigned int alen, const uint8_t *payload, unsigned int plen,
|
A D | hmac_prng.h | 117 unsigned int plen);
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | pkcs5.c | 221 size_t plen, const unsigned char *salt, size_t slen, in mbedtls_pkcs5_pbkdf2_hmac() argument 246 if( ( ret = mbedtls_md_hmac_starts( ctx, password, plen ) ) != 0 ) in mbedtls_pkcs5_pbkdf2_hmac() 264 if( ( ret = mbedtls_md_hmac_starts( ctx, password, plen ) ) != 0 ) in mbedtls_pkcs5_pbkdf2_hmac() 307 static const size_t plen[MAX_TESTS] = variable 383 ret = mbedtls_pkcs5_pbkdf2_hmac( &sha1_ctx, password[i], plen[i], salt[i], in mbedtls_pkcs5_self_test()
|
A D | ecp.c | 740 size_t plen; in mbedtls_ecp_point_write_binary() local 762 plen = mbedtls_mpi_size( &grp->P ); in mbedtls_ecp_point_write_binary() 766 *olen = 2 * plen + 1; in mbedtls_ecp_point_write_binary() 772 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->X, buf + 1, plen ) ); in mbedtls_ecp_point_write_binary() 773 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->Y, buf + 1 + plen, plen ) ); in mbedtls_ecp_point_write_binary() 777 *olen = plen + 1; in mbedtls_ecp_point_write_binary() 798 size_t plen; in mbedtls_ecp_point_read_binary() local 814 plen = mbedtls_mpi_size( &grp->P ); in mbedtls_ecp_point_read_binary() 819 if( ilen != 2 * plen + 1 ) in mbedtls_ecp_point_read_binary() 822 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pt->X, buf + 1, plen ) ); in mbedtls_ecp_point_read_binary() [all …]
|
/AliOS-Things-master/kernel/rhino/ |
A D | k_ringbuf.c | 103 kstat_t ringbuf_pop(k_ringbuf_t *p_ringbuf, void *pdata, size_t *plen) in ringbuf_pop() argument 120 if (plen != NULL) { in ringbuf_pop() 121 *plen = p_ringbuf->blk_size; in ringbuf_pop() 148 *plen = len; in ringbuf_pop()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/ |
A D | ecp.c | 181 ecp_printpkt(p, plen, printer, arg) in ecp_printpkt() argument 183 int plen;
|
A D | pppoe.c | 375 u16_t session, plen; in pppoe_disc_input() local 423 plen = lwip_ntohs(ph->plen); in pppoe_disc_input() 426 if (plen + off > pb->len) { in pppoe_disc_input() 428 pb->len - off, plen)); in pppoe_disc_input() 432 pb->tot_len = pb->len = (u16_t)off + plen; /* ignore trailing garbage */ in pppoe_disc_input() 652 u16_t session, plen; in pppoe_data_input() local 693 plen = lwip_ntohs(ph->plen); in pppoe_data_input() 704 pb->len, plen)); in pppoe_data_input() 706 if (pb->tot_len < plen) { in pppoe_data_input()
|
A D | upap.c | 89 static int upap_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), vo… 602 static int upap_printpkt(const u_char *p, int plen, void (*printer) (void *, const char *, ...), vo… in upap_printpkt() argument 608 if (plen < UPAP_HEADERLEN) in upap_printpkt() 614 if (len < UPAP_HEADERLEN || len > plen) in upap_printpkt()
|
A D | chap-new.c | 107 static int chap_print_pkt(const unsigned char *p, int plen, 593 static int chap_print_pkt(const unsigned char *p, int plen, argument 599 if (plen < CHAP_HDRLEN) 604 if (len < CHAP_HDRLEN || len > plen)
|
A D | eap.c | 432 int id, i, plen, toffs; in eap_figure_next_state() local 464 plen = b64dec(&bs, in eap_figure_next_state() 479 if (id + 1 <= plen && id + 9 > plen) in eap_figure_next_state() 482 if (plen % 8 == 0 && i < 5) { in eap_figure_next_state() 488 if ((i = plen = *(unsigned char *)clear) > 7) in eap_figure_next_state() 490 pcb->eap.es_server.ea_peerlen = plen; in eap_figure_next_state() 493 plen -= i; in eap_figure_next_state() 496 while (plen > 0) { in eap_figure_next_state() 501 plen -= 8; in eap_figure_next_state()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/prot/ |
A D | ip6.h | 146 #define IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = lwip_htons(plen) argument
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/prot/ |
A D | ip6.h | 146 #define IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = lwip_htons(plen) argument
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/ |
A D | wifi_conf.c | 2056 int plen = 0; in wifi_scan_networks_with_ssid() local 2057 while(plen < scan_buf.buf_len){ in wifi_scan_networks_with_ssid() 2064 len = (int)*(scan_buf.buf + plen); in wifi_scan_networks_with_ssid() 2069 mac = scan_buf.buf + plen + 1; in wifi_scan_networks_with_ssid() 2075 rssi = *(int*)(scan_buf.buf + plen + 1 + 6); in wifi_scan_networks_with_ssid() 2101 plen += len; in wifi_scan_networks_with_ssid() 2162 int plen = 0; in wifi_scan_networks_with_ssid_by_extended_security() local 2163 while(plen < scan_buf.buf_len){ in wifi_scan_networks_with_ssid_by_extended_security() 2174 len = (int)*(scan_buf.buf + plen); in wifi_scan_networks_with_ssid_by_extended_security() 2179 mac = scan_buf.buf + plen + BUFLEN_LEN; in wifi_scan_networks_with_ssid_by_extended_security() [all …]
|
A D | wifi_promisc.c | 39 int promisc_recv_lens_func(void *padapter, u8 *payload, u8 plen) in promisc_recv_lens_func() argument 44 ( void ) plen; in promisc_recv_lens_func() 49 return _promisc_recv_lens_func(padapter, payload, plen); in promisc_recv_lens_func()
|
A D | wifi_simple_config.c | 429 int plen = 0; in SC_softAP_find_ap_from_scan_buf() local 431 while(plen < buflen){ in SC_softAP_find_ap_from_scan_buf() 436 len = (int)*(buf + plen); in SC_softAP_find_ap_from_scan_buf() 441 ssid = buf + plen + 14 ; in SC_softAP_find_ap_from_scan_buf() 447 pwifi->channel = *(buf + plen + 13); in SC_softAP_find_ap_from_scan_buf() 449 security_mode = (u8)*(buf + plen + 11); in SC_softAP_find_ap_from_scan_buf() 458 plen += len; in SC_softAP_find_ap_from_scan_buf()
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | pkcs5.h | 84 size_t plen, const unsigned char *salt, size_t slen,
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/ |
A D | hal_cmd.h | 85 void hal_cmd_tx_process (uint8_t** ppbuf, uint16_t* plen);
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | libregexp.h | 42 uint8_t *lre_compile(int *plen, char *error_msg, int error_msg_size,
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/netif/ppp/ |
A D | pppoe.h | 87 PACK_STRUCT_FIELD(u16_t plen);
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/netif/ppp/ |
A D | pppoe.h | 87 PACK_STRUCT_FIELD(u16_t plen);
|
/AliOS-Things-master/hardware/chip/rtl872xd/tools/autopatch/ |
A D | auto_patch.bat | 139 %$strlen% plen,last_part 142 set /a lio=strlen-plen-slen
|