Home
last modified time | relevance | path

Searched refs:pad_len (Results 1 – 25 of 30) sorted by relevance

12

/third_party/ffmpeg/libavformat/
Dcrypto.c60 int pad_len; member
332 int total_size, blocks, pad_len, out_size; in crypto_write() local
335 total_size = size + c->pad_len; in crypto_write()
336 pad_len = total_size % BLOCKSIZE; in crypto_write()
337 out_size = total_size - pad_len; in crypto_write()
346 if (c->pad_len) { in crypto_write()
347 memcpy(&c->pad[c->pad_len], buf, BLOCKSIZE - c->pad_len); in crypto_write()
353 &c->write_buf[c->pad_len ? BLOCKSIZE : 0], in crypto_write()
354 &buf[c->pad_len ? BLOCKSIZE - c->pad_len : 0], in crypto_write()
361 memcpy(c->pad, &buf[size - pad_len], pad_len); in crypto_write()
[all …]
Dasfdec_o.c130 uint32_t pad_len; // padding after payload member
1111 if (avio_tell(pb) >= asf->packet_offset + asf->packet_size - asf->pad_len) { in asf_read_subpayload()
1114 avio_skip(pb, asf->pad_len); in asf_read_subpayload()
1237 size = asf->packet_size_internal - offset + asf->packet_offset - asf->pad_len; in asf_read_single_payload()
1239 size = asf->packet_size - offset + asf->packet_offset - asf->pad_len; in asf_read_single_payload()
1259 avio_skip(pb, asf->pad_len); // skip padding in asf_read_single_payload()
1368 ASF_PPI_FLAG_PADDING_LENGTH_FIELD_, asf->pad_len ); in asf_read_packet_header()
1462 asf->packet_size - asf->pad_len)) in asf_read_packet()
1463 avio_skip(pb, asf->pad_len); // skip padding in asf_read_packet()
1474 asf->packet_size - asf->pad_len)) in asf_read_packet()
[all …]
/third_party/ffmpeg/libavfilter/
Daf_apad.c42 int64_t pad_len, pad_len_left; member
53 …{ "pad_len", "set number of samples of silence to add", OFFSET(pad_len), …
67 if (s->whole_len >= 0 && s->pad_len >= 0) { in init()
102 if (s->whole_len >= 0 && s->pad_len < 0) { in request_frame()
103 s->pad_len = s->pad_len_left = s->whole_len_left; in request_frame()
105 if (s->pad_len >=0 || s->whole_len >= 0) { in request_frame()
142 s->pad_len = av_rescale(s->pad_dur, outlink->sample_rate, AV_TIME_BASE); in config_output()
146 s->pad_len_left = s->pad_len; in config_output()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_sim_common.c1056 int pad_len; in eap_sim_msg_add_full() local
1062 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full()
1063 attr_len += pad_len; in eap_sim_msg_add_full()
1070 if (pad_len) in eap_sim_msg_add_full()
1071 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add_full()
1080 int pad_len; in eap_sim_msg_add() local
1086 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add()
1087 attr_len += pad_len; in eap_sim_msg_add()
1098 if (pad_len) in eap_sim_msg_add()
1099 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add()
[all …]
Dikev2_common.c437 size_t decrypted_len, pad_len; in ikev2_decrypt_payload() local
505 pad_len = decrypted[decrypted_len - 1]; in ikev2_decrypt_payload()
506 if (decrypted_len < pad_len + 1) { in ikev2_decrypt_payload()
513 decrypted_len -= pad_len + 1; in ikev2_decrypt_payload()
536 size_t iv_len, pad_len; in ikev2_build_encrypted() local
580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; in ikev2_build_encrypted()
581 if (pad_len == iv_len) in ikev2_build_encrypted()
582 pad_len = 0; in ikev2_build_encrypted()
583 wpabuf_put(plain, pad_len); in ikev2_build_encrypted()
584 wpabuf_put_u8(plain, pad_len); in ikev2_build_encrypted()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_sim_common.c1056 int pad_len; in eap_sim_msg_add_full() local
1062 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full()
1063 attr_len += pad_len; in eap_sim_msg_add_full()
1070 if (pad_len) in eap_sim_msg_add_full()
1071 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add_full()
1080 int pad_len; in eap_sim_msg_add() local
1086 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add()
1087 attr_len += pad_len; in eap_sim_msg_add()
1098 if (pad_len) in eap_sim_msg_add()
1099 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add()
[all …]
Dikev2_common.c437 size_t decrypted_len, pad_len; in ikev2_decrypt_payload() local
505 pad_len = decrypted[decrypted_len - 1]; in ikev2_decrypt_payload()
506 if (decrypted_len < pad_len + 1) { in ikev2_decrypt_payload()
513 decrypted_len -= pad_len + 1; in ikev2_decrypt_payload()
536 size_t iv_len, pad_len; in ikev2_build_encrypted() local
580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; in ikev2_build_encrypted()
581 if (pad_len == iv_len) in ikev2_build_encrypted()
582 pad_len = 0; in ikev2_build_encrypted()
583 wpabuf_put(plain, pad_len); in ikev2_build_encrypted()
584 wpabuf_put_u8(plain, pad_len); in ikev2_build_encrypted()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/rtp/
Dgstrtpbuffer.h69 guint8 pad_len, guint8 csrc_count);
78 GstBuffer* gst_rtp_buffer_new_allocate (guint payload_len, guint8 pad_len, guint8 csr…
81 GstBuffer* gst_rtp_buffer_new_allocate_len (guint packet_len, guint8 pad_len, guint8 csrc…
87 guint gst_rtp_buffer_calc_packet_len (guint payload_len, guint8 pad_len, guint8 csr…
90 guint gst_rtp_buffer_calc_payload_len (guint packet_len, guint8 pad_len, guint8 csrc…
Dgstrtpbuffer.c100 guint8 pad_len, guint8 csrc_count) in gst_rtp_buffer_allocate_data() argument
119 if (pad_len) in gst_rtp_buffer_allocate_data()
140 if (pad_len) { in gst_rtp_buffer_allocate_data()
141 mem = gst_allocator_alloc (NULL, pad_len, NULL); in gst_rtp_buffer_allocate_data()
144 map.data[pad_len - 1] = pad_len; in gst_rtp_buffer_allocate_data()
204 gst_rtp_buffer_new_allocate (guint payload_len, guint8 pad_len, in gst_rtp_buffer_new_allocate() argument
212 gst_rtp_buffer_allocate_data (result, payload_len, pad_len, csrc_count); in gst_rtp_buffer_new_allocate()
231 gst_rtp_buffer_new_allocate_len (guint packet_len, guint8 pad_len, in gst_rtp_buffer_new_allocate_len() argument
238 len = gst_rtp_buffer_calc_payload_len (packet_len, pad_len, csrc_count); in gst_rtp_buffer_new_allocate_len()
240 return gst_rtp_buffer_new_allocate (len, pad_len, csrc_count); in gst_rtp_buffer_new_allocate_len()
[all …]
Dgstrtpbasepayload.h181 guint payload_len, guint8 pad_len,
Dgstrtpbasepayload.c2055 guint payload_len, guint8 pad_len, guint8 csrc_count) in gst_rtp_base_payload_allocate_output_buffer() argument
2069 buffer = gst_rtp_buffer_new_allocate (payload_len, pad_len, in gst_rtp_base_payload_allocate_output_buffer()
2087 buffer = gst_rtp_buffer_new_allocate (payload_len, pad_len, csrc_count); in gst_rtp_base_payload_allocate_output_buffer()
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/
Dnpy_header.cc134 const size_t pad_len = kArrayAlign - total_len % kArrayAlign; in GenerateNpyHeader() local
135 const size_t padding_header_len = header_len + pad_len + 1; in GenerateNpyHeader()
136 const std::string padding(pad_len, ' '); in GenerateNpyHeader()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_attr_build.c387 size_t pad_len; in wps_build_encr_settings() local
394 pad_len = block_size - wpabuf_len(plain) % block_size; in wps_build_encr_settings()
395 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_attr_build.c396 size_t pad_len; in wps_build_encr_settings() local
403 pad_len = block_size - wpabuf_len(plain) % block_size; in wps_build_encr_settings()
404 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings()
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/
Dgstrtprtxreceive.c490 guint pad_len = rtp->size[3]; in _gst_rtp_buffer_new_from_rtx() local
492 mem = gst_allocator_alloc (NULL, pad_len, NULL); in _gst_rtp_buffer_new_from_rtx()
495 map.data[pad_len - 1] = pad_len; in _gst_rtp_buffer_new_from_rtx()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Dikev2.c38 size_t buf_len, pad_len; in ikev2_derive_keys() local
83 pad_len = data->dh->prime_len - wpabuf_len(shared); in ikev2_derive_keys()
84 pad = os_zalloc(pad_len ? pad_len : 1); in ikev2_derive_keys()
91 len[0] = pad_len; in ikev2_derive_keys()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Dikev2.c34 size_t buf_len, pad_len; in ikev2_derive_keys() local
78 pad_len = data->dh->prime_len - wpabuf_len(shared); in ikev2_derive_keys()
79 pad = os_zalloc(pad_len ? pad_len : 1); in ikev2_derive_keys()
87 len[0] = pad_len; in ikev2_derive_keys()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
Dikev2.c38 size_t buf_len, pad_len; in ikev2_derive_keys() local
83 pad_len = data->dh->prime_len - wpabuf_len(shared); in ikev2_derive_keys()
84 pad = os_zalloc(pad_len ? pad_len : 1); in ikev2_derive_keys()
91 len[0] = pad_len; in ikev2_derive_keys()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Dikev2.c34 size_t buf_len, pad_len; in ikev2_derive_keys() local
78 pad_len = data->dh->prime_len - wpabuf_len(shared); in ikev2_derive_keys()
79 pad = os_zalloc(pad_len ? pad_len : 1); in ikev2_derive_keys()
87 len[0] = pad_len; in ikev2_derive_keys()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dwpa_auth_ft.c530 size_t pad_len = 0; in wpa_ft_rrb_build() local
544 pad_len = RRB_MIN_MSG_LEN - *packet_len; in wpa_ft_rrb_build()
545 if (pad_len < sizeof(struct ft_rrb_tlv)) in wpa_ft_rrb_build()
546 pad_len = sizeof(struct ft_rrb_tlv); in wpa_ft_rrb_build()
549 (int) *packet_len, (int) (*packet_len + pad_len)); in wpa_ft_rrb_build()
550 *packet_len += pad_len; in wpa_ft_rrb_build()
551 tmp = os_realloc(auth, auth_len + pad_len); in wpa_ft_rrb_build()
558 WPA_PUT_LE16(pos, pad_len - sizeof(struct ft_rrb_tlv)); in wpa_ft_rrb_build()
560 os_memset(pos, 0, pad_len - sizeof(struct ft_rrb_tlv)); in wpa_ft_rrb_build()
561 auth_len += pad_len; in wpa_ft_rrb_build()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dwpa_auth_ft.c529 size_t pad_len = 0; in wpa_ft_rrb_build() local
543 pad_len = RRB_MIN_MSG_LEN - *packet_len; in wpa_ft_rrb_build()
544 if (pad_len < sizeof(struct ft_rrb_tlv)) in wpa_ft_rrb_build()
545 pad_len = sizeof(struct ft_rrb_tlv); in wpa_ft_rrb_build()
548 (int) *packet_len, (int) (*packet_len + pad_len)); in wpa_ft_rrb_build()
549 *packet_len += pad_len; in wpa_ft_rrb_build()
550 tmp = os_realloc(auth, auth_len + pad_len); in wpa_ft_rrb_build()
557 WPA_PUT_LE16(pos, pad_len - sizeof(struct ft_rrb_tlv)); in wpa_ft_rrb_build()
559 os_memset(pos, 0, pad_len - sizeof(struct ft_rrb_tlv)); in wpa_ft_rrb_build()
560 auth_len += pad_len; in wpa_ft_rrb_build()
[all …]
Dwpa_auth.c1445 int key_data_len, pad_len = 0; in __wpa_send_eapol() local
1484 pad_len = key_data_len % 8; in __wpa_send_eapol()
1485 if (pad_len) in __wpa_send_eapol()
1486 pad_len = 8 - pad_len; in __wpa_send_eapol()
1487 key_data_len += pad_len + 8; in __wpa_send_eapol()
1575 if (pad_len) in __wpa_send_eapol()
/third_party/glib/glib/
Dgchecksum.c1330 guint pad_len = 0; in sha512_sum_close() local
1342 pad_len++; in sha512_sum_close()
1344 memset (pad + pad_len, 0x00, zeros / 8); in sha512_sum_close()
1345 pad_len += zeros / 8; in sha512_sum_close()
1350 PUT_UINT64 (sha512->data_len[1], pad, pad_len); in sha512_sum_close()
1351 pad_len += 8; in sha512_sum_close()
1353 PUT_UINT64 (sha512->data_len[0], pad, pad_len); in sha512_sum_close()
1354 pad_len += 8; in sha512_sum_close()
1357 sha512_sum_update (sha512, pad, pad_len); in sha512_sum_close()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/
Dcoco_op.cc103 dsize_t pad_len = bbox_column_num - static_cast<dsize_t>(bbox.size()); in LoadTensorRow() local
104 if (pad_len > 0) { in LoadTensorRow()
105 for (dsize_t i = 0; i < pad_len; i++) { in LoadTensorRow()
/third_party/mbedtls/library/
Drsa.c1333 size_t ilen, i, pad_len; in mbedtls_rsa_rsaes_oaep_decrypt() local
1419 pad_len = 0; in mbedtls_rsa_rsaes_oaep_decrypt()
1424 pad_len += ((pad_done | (unsigned char)-pad_done) >> 7) ^ 1; in mbedtls_rsa_rsaes_oaep_decrypt()
1427 p += pad_len; in mbedtls_rsa_rsaes_oaep_decrypt()

12