/external/wpa_supplicant/ |
eap_sim_common.c | 690 int pad_len; local 696 pad_len = (4 - attr_len % 4) % 4; 697 attr_len += pad_len; 704 if (pad_len) { 706 os_memset(pos, 0, pad_len); 717 int pad_len; local 723 pad_len = (4 - attr_len % 4) % 4; 724 attr_len += pad_len; 734 if (pad_len) { 736 os_memset(pos, 0, pad_len); 785 int pad_len = 16 - (encr_len % 16); local [all...] |
/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_6/wpa_supplicant/src/wps/ |
wps_attr_build.c | 231 size_t pad_len; local 238 pad_len = block_size - wpabuf_len(plain) % block_size; 239 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
eap_sim_common.c | 1060 int pad_len; local 1066 pad_len = (4 - attr_len % 4) % 4; 1067 attr_len += pad_len; 1074 if (pad_len) 1075 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); 1084 int pad_len; local 1090 pad_len = (4 - attr_len % 4) % 4; 1091 attr_len += pad_len; 1102 if (pad_len) 1151 int pad_len = 16 - (encr_len % 16); local [all...] |
ikev2_common.c | 504 size_t decrypted_len, pad_len; local 572 pad_len = decrypted[decrypted_len - 1]; 573 if (decrypted_len < pad_len + 1) { 580 decrypted_len -= pad_len + 1; 603 size_t iv_len, pad_len; local 647 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; 648 if (pad_len == iv_len) 649 pad_len = 0; 650 wpabuf_put(plain, pad_len); 651 wpabuf_put_u8(plain, pad_len); [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
eap_sim_common.c | 1061 int pad_len; local 1067 pad_len = (4 - attr_len % 4) % 4; 1068 attr_len += pad_len; 1075 if (pad_len) 1076 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); 1085 int pad_len; local 1091 pad_len = (4 - attr_len % 4) % 4; 1092 attr_len += pad_len; 1103 if (pad_len) 1152 int pad_len = 16 - (encr_len % 16); local [all...] |
ikev2_common.c | 505 size_t decrypted_len, pad_len; local 573 pad_len = decrypted[decrypted_len - 1]; 574 if (decrypted_len < pad_len + 1) { 581 decrypted_len -= pad_len + 1; 604 size_t iv_len, pad_len; local 648 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; 649 if (pad_len == iv_len) 650 pad_len = 0; 651 wpabuf_put(plain, pad_len); 652 wpabuf_put_u8(plain, pad_len); [all...] |
/external/wpa_supplicant_8/src/wps/ |
wps_attr_build.c | 322 size_t pad_len; local 329 pad_len = block_size - wpabuf_len(plain) % block_size; 330 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
ikev2.c | 39 size_t buf_len, pad_len; local 96 pad_len = data->dh->prime_len - wpabuf_len(shared); 99 pad_len = 0; 101 pad = os_zalloc(pad_len ? pad_len : 1); 109 len[0] = pad_len; [all...] |
/external/wpa_supplicant_8/src/eap_peer/ |
ikev2.c | 40 size_t buf_len, pad_len; local 97 pad_len = data->dh->prime_len - wpabuf_len(shared); 100 pad_len = 0; 102 pad = os_zalloc(pad_len ? pad_len : 1); 110 len[0] = pad_len; [all...] |
/external/wpa_supplicant_8/src/ap/ |
wpa_auth_ft.c | 417 size_t subelem_len, pad_len; local 430 pad_len = key_len % 8; 431 if (pad_len) 432 pad_len = 8 - pad_len; 433 if (key_len + pad_len < 16) 434 pad_len += 8; 435 if (pad_len) { 437 os_memset(keybuf + key_len, 0, pad_len); 439 key_len += pad_len; [all...] |
wpa_auth.c | 1124 int key_data_len, pad_len = 0; local 1156 pad_len = key_data_len % 8; 1157 if (pad_len) 1158 pad_len = 8 - pad_len; 1159 key_data_len += pad_len + 8; [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
ikev2.c | 43 size_t buf_len, pad_len; local 88 pad_len = data->dh->prime_len - wpabuf_len(shared); 89 pad = os_zalloc(pad_len ? pad_len : 1); 96 len[0] = pad_len;
|
/external/wpa_supplicant_8/src/eap_server/ |
ikev2.c | 44 size_t buf_len, pad_len; local 89 pad_len = data->dh->prime_len - wpabuf_len(shared); 90 pad = os_zalloc(pad_len ? pad_len : 1); 97 len[0] = pad_len;
|