/frameworks/compile/libbcc/include/bcinfo/Wrap/ |
BCHeaderField.h | 50 size_t pad_len = (4 - (fields_len & 3)) & 3; local 54 if (buf_len < fields_len + pad_len || 62 if (pad_len) { 63 memset(buf + fields_len, 0, pad_len);
|
/external/chromium/third_party/libjingle/source/talk/base/ |
base64.cc | 126 size_t byte_len = 0, pad_len = 0, pad_start = 0; local 142 } else if (byte_len + pad_len >= 4) { 147 if (1 == ++pad_len) { 152 if (pad_len > 0) { 156 pad_len = 0; 164 if (4 == byte_len + pad_len) { 168 if (pad_len) {
|
/external/wpa_supplicant_8/src/eap_common/ |
eap_sim_common.c | 1055 int pad_len; local 1061 pad_len = (4 - attr_len % 4) % 4; 1062 attr_len += pad_len; 1069 if (pad_len) 1070 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); 1079 int pad_len; local 1085 pad_len = (4 - attr_len % 4) % 4; 1086 attr_len += pad_len; 1097 if (pad_len) 1146 int pad_len = 16 - (encr_len % 16); local [all...] |
ikev2_common.c | 499 size_t decrypted_len, pad_len; local 567 pad_len = decrypted[decrypted_len - 1]; 568 if (decrypted_len < pad_len + 1) { 575 decrypted_len -= pad_len + 1; 598 size_t iv_len, pad_len; local 642 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; 643 if (pad_len == iv_len) 644 pad_len = 0; 645 wpabuf_put(plain, pad_len); 646 wpabuf_put_u8(plain, pad_len); [all...] |
/external/wpa_supplicant_8/src/wps/ |
wps_attr_build.c | 340 size_t pad_len; local 347 pad_len = block_size - wpabuf_len(plain) % block_size; 348 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
|
/external/bluetooth/bluedroid/stack/avdt/ |
avdt_scb_act.c | 246 UINT8 pad_len = 0; local 275 pad_len = *(p_start + p_data->p_pkt->len); 279 if ((offset > p_data->p_pkt->len) || ((pad_len + offset) > p_data->p_pkt->len)) 287 p_data->p_pkt->len -= (offset + pad_len); 416 UINT8 pad_len; local 597 pad_len = *(p_scb->p_media_buf + p_scb->frag_off - 1); 600 pad_len = 0; 602 payload_len = (UINT32)(p_scb->p_media_buf + p_scb->frag_off - pad_len - p_payload); [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
ikev2.c | 34 size_t buf_len, pad_len; local 91 pad_len = data->dh->prime_len - wpabuf_len(shared); 94 pad_len = 0; 96 pad = os_zalloc(pad_len ? pad_len : 1); 104 len[0] = pad_len; [all...] |
/external/wpa_supplicant_8/src/ap/ |
wpa_auth_ft.c | 401 size_t subelem_len, pad_len; local 414 pad_len = key_len % 8; 415 if (pad_len) 416 pad_len = 8 - pad_len; 417 if (key_len + pad_len < 16) 418 pad_len += 8; 419 if (pad_len && key_len < sizeof(keybuf)) { 421 os_memset(keybuf + key_len, 0, pad_len); 423 key_len += pad_len; [all...] |
wpa_auth.c | 1219 int key_data_len, pad_len = 0; local [all...] |
/external/wpa_supplicant_8/src/eap_server/ |
ikev2.c | 38 size_t buf_len, pad_len; local 83 pad_len = data->dh->prime_len - wpabuf_len(shared); 84 pad = os_zalloc(pad_len ? pad_len : 1); 91 len[0] = pad_len;
|