/external/boringssl/src/crypto/base64/ |
H A D | base64.c | 220 size_t pad_len = 0, len = 0, max_len, i; local 232 pad_len = 2; 234 pad_len = 1; 237 if (pad_len < 2) { 242 if (pad_len < 1) { 253 if (pad_len < 2) { 256 if (pad_len < 1) { 259 len += 3 - pad_len;
|
/external/wpa_supplicant_8/hostapd/src/eap_common/ |
H A D | eap_sim_common.c | 1054 int pad_len; local 1060 pad_len = (4 - attr_len % 4) % 4; 1061 attr_len += pad_len; 1068 if (pad_len) 1069 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); 1078 int pad_len; local 1084 pad_len = (4 - attr_len % 4) % 4; 1085 attr_len += pad_len; 1096 if (pad_len) 1145 int pad_len = 16 - (encr_len % 16); local [all...] |
H A D | ikev2_common.c | 438 size_t decrypted_len, pad_len; local 506 pad_len = decrypted[decrypted_len - 1]; 507 if (decrypted_len < pad_len + 1) { 514 decrypted_len -= pad_len + 1; 537 size_t iv_len, pad_len; local 581 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; 582 if (pad_len == iv_len) 583 pad_len = 0; 584 wpabuf_put(plain, pad_len); 585 wpabuf_put_u8(plain, pad_len); [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
H A D | eap_sim_common.c | 1054 int pad_len; local 1060 pad_len = (4 - attr_len % 4) % 4; 1061 attr_len += pad_len; 1068 if (pad_len) 1069 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); 1078 int pad_len; local 1084 pad_len = (4 - attr_len % 4) % 4; 1085 attr_len += pad_len; 1096 if (pad_len) 1145 int pad_len = 16 - (encr_len % 16); local [all...] |
H A D | ikev2_common.c | 438 size_t decrypted_len, pad_len; local 506 pad_len = decrypted[decrypted_len - 1]; 507 if (decrypted_len < pad_len + 1) { 514 decrypted_len -= pad_len + 1; 537 size_t iv_len, pad_len; local 581 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; 582 if (pad_len == iv_len) 583 pad_len = 0; 584 wpabuf_put(plain, pad_len); 585 wpabuf_put_u8(plain, pad_len); [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/ |
H A D | eap_sim_common.c | 1054 int pad_len; local 1060 pad_len = (4 - attr_len % 4) % 4; 1061 attr_len += pad_len; 1068 if (pad_len) 1069 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); 1078 int pad_len; local 1084 pad_len = (4 - attr_len % 4) % 4; 1085 attr_len += pad_len; 1096 if (pad_len) 1145 int pad_len = 16 - (encr_len % 16); local [all...] |
H A D | ikev2_common.c | 438 size_t decrypted_len, pad_len; local 506 pad_len = decrypted[decrypted_len - 1]; 507 if (decrypted_len < pad_len + 1) { 514 decrypted_len -= pad_len + 1; 537 size_t iv_len, pad_len; local 581 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; 582 if (pad_len == iv_len) 583 pad_len = 0; 584 wpabuf_put(plain, pad_len); 585 wpabuf_put_u8(plain, pad_len); [all...] |
/external/boringssl/src/crypto/cipher/ |
H A D | e_ssl3.c | 39 size_t pad_len = (md_size == 20) ? 40 : 48; local 52 memset(pad, 0x36, pad_len); 54 !EVP_DigestUpdate(&md_ctx, pad, pad_len) || 63 memset(pad, 0x5c, pad_len); 65 !EVP_DigestUpdate(&md_ctx, pad, pad_len) ||
|
/external/jemalloc/src/ |
H A D | util.c | 330 size_t pad_len = (width == -1) ? 0 : ((slen < (size_t)width) ? \ 332 if (!left_justify && pad_len != 0) { \ 334 for (j = 0; j < pad_len; j++) \ 340 if (left_justify && pad_len != 0) { \ 342 for (j = 0; j < pad_len; j++) \
|
/external/wpa_supplicant_8/hostapd/src/wps/ |
H A D | wps_attr_build.c | 359 size_t pad_len; local 366 pad_len = block_size - wpabuf_len(plain) % block_size; 367 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
|
/external/wpa_supplicant_8/src/wps/ |
H A D | wps_attr_build.c | 359 size_t pad_len; local 366 pad_len = block_size - wpabuf_len(plain) % block_size; 367 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
|
/external/wpa_supplicant_8/wpa_supplicant/src/wps/ |
H A D | wps_attr_build.c | 359 size_t pad_len; local 366 pad_len = block_size - wpabuf_len(plain) % block_size; 367 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
|
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | 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 && key_len < sizeof(keybuf)) { 437 os_memset(keybuf + key_len, 0, pad_len); 439 key_len += pad_len; [all...] |
H A D | wpa_auth.c | 1413 int key_data_len, pad_len = 0; local 1454 pad_len = key_data_len % 8; 1455 if (pad_len) 1456 pad_len = 8 - pad_len; 1457 key_data_len += pad_len + 8; 1522 if (pad_len)
|
/external/wpa_supplicant_8/src/ap/ |
H A D | 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 && key_len < sizeof(keybuf)) { 437 os_memset(keybuf + key_len, 0, pad_len); 439 key_len += pad_len; [all...] |
H A D | wpa_auth.c | 1413 int key_data_len, pad_len = 0; local 1454 pad_len = key_data_len % 8; 1455 if (pad_len) 1456 pad_len = 8 - pad_len; 1457 key_data_len += pad_len + 8; 1522 if (pad_len)
|
/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A D | 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 && key_len < sizeof(keybuf)) { 437 os_memset(keybuf + key_len, 0, pad_len); 439 key_len += pad_len; [all...] |
H A D | wpa_auth.c | 1413 int key_data_len, pad_len = 0; local 1454 pad_len = key_data_len % 8; 1455 if (pad_len) 1456 pad_len = 8 - pad_len; 1457 key_data_len += pad_len + 8; 1522 if (pad_len)
|
/external/wpa_supplicant_8/hostapd/src/eap_peer/ |
H A D | ikev2.c | 34 size_t buf_len, pad_len; local 78 pad_len = data->dh->prime_len - wpabuf_len(shared); 79 pad = os_zalloc(pad_len ? pad_len : 1); 87 len[0] = pad_len;
|
/external/wpa_supplicant_8/hostapd/src/eap_server/ |
H A D | 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;
|
/external/wpa_supplicant_8/src/eap_peer/ |
H A D | ikev2.c | 34 size_t buf_len, pad_len; local 78 pad_len = data->dh->prime_len - wpabuf_len(shared); 79 pad = os_zalloc(pad_len ? pad_len : 1); 87 len[0] = pad_len;
|
/external/wpa_supplicant_8/src/eap_server/ |
H A D | 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;
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/ |
H A D | ikev2.c | 34 size_t buf_len, pad_len; local 78 pad_len = data->dh->prime_len - wpabuf_len(shared); 79 pad = os_zalloc(pad_len ? pad_len : 1); 87 len[0] = pad_len;
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_server/ |
H A D | 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;
|
/external/fio/crc/ |
H A D | sha256.c | 275 unsigned int index, pad_len; local 284 pad_len = (index < 56) ? (56 - index) : ((64+56) - index); 285 fio_sha256_update(sctx, padding, pad_len);
|