Searched defs:pad_len (Results 1 - 25 of 25) sorted by relevance

/external/webrtc/webrtc/base/
H A Dbase64.cc142 size_t byte_len = 0, pad_len = 0, pad_start = 0; local
158 } else if (byte_len + pad_len >= 4) {
163 if (1 == ++pad_len) {
168 if (pad_len > 0) {
172 pad_len = 0;
180 if (4 == byte_len + pad_len) {
184 if (pad_len) {
/external/boringssl/src/crypto/base64/
H A Dbase64.c220 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/fio/crc/
H A Dsha256.c275 unsigned int index, pad_len; local
284 pad_len = (index < 56) ? (56 - index) : ((64+56) - index);
285 fio_sha256_update(sctx, padding, pad_len);
/external/wpa_supplicant_8/hostapd/src/wps/
H A Dwps_attr_build.c377 size_t pad_len; local
384 pad_len = block_size - wpabuf_len(plain) % block_size;
385 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
/external/wpa_supplicant_8/src/wps/
H A Dwps_attr_build.c377 size_t pad_len; local
384 pad_len = block_size - wpabuf_len(plain) % block_size;
385 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
/external/wpa_supplicant_8/wpa_supplicant/src/wps/
H A Dwps_attr_build.c377 size_t pad_len; local
384 pad_len = block_size - wpabuf_len(plain) % block_size;
385 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); local
/external/boringssl/src/crypto/cipher/
H A De_ssl3.c39 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/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_sim_common.c1054 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 Dikev2_common.c437 size_t decrypted_len, pad_len; local
505 pad_len = decrypted[decrypted_len - 1];
506 if (decrypted_len < pad_len + 1) {
513 decrypted_len -= pad_len + 1;
536 size_t iv_len, pad_len; local
580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len;
581 if (pad_len == iv_len)
582 pad_len = 0;
583 wpabuf_put(plain, pad_len);
584 wpabuf_put_u8(plain, pad_len);
[all...]
/external/wpa_supplicant_8/hostapd/src/eap_peer/
H A Dikev2.c34 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 Dikev2.c38 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_common/
H A Deap_sim_common.c1054 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 Dikev2_common.c437 size_t decrypted_len, pad_len; local
505 pad_len = decrypted[decrypted_len - 1];
506 if (decrypted_len < pad_len + 1) {
513 decrypted_len -= pad_len + 1;
536 size_t iv_len, pad_len; local
580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len;
581 if (pad_len == iv_len)
582 pad_len = 0;
583 wpabuf_put(plain, pad_len);
584 wpabuf_put_u8(plain, pad_len);
[all...]
/external/wpa_supplicant_8/src/eap_peer/
H A Dikev2.c34 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 Dikev2.c38 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_common/
H A Deap_sim_common.c1054 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 Dikev2_common.c437 size_t decrypted_len, pad_len; local
505 pad_len = decrypted[decrypted_len - 1];
506 if (decrypted_len < pad_len + 1) {
513 decrypted_len -= pad_len + 1;
536 size_t iv_len, pad_len; local
580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len;
581 if (pad_len == iv_len)
582 pad_len = 0;
583 wpabuf_put(plain, pad_len);
584 wpabuf_put_u8(plain, pad_len);
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/
H A Dikev2.c34 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 Dikev2.c38 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/hostapd/src/ap/
H A Dwpa_auth_ft.c417 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 Dwpa_auth.c1418 int key_data_len, pad_len = 0; local
1459 pad_len = key_data_len % 8;
1460 if (pad_len)
1461 pad_len = 8 - pad_len;
1462 key_data_len += pad_len + 8;
1527 if (pad_len)
/external/wpa_supplicant_8/src/ap/
H A Dwpa_auth_ft.c417 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 Dwpa_auth.c1418 int key_data_len, pad_len = 0; local
1459 pad_len = key_data_len % 8;
1460 if (pad_len)
1461 pad_len = 8 - pad_len;
1462 key_data_len += pad_len + 8;
1527 if (pad_len)
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dwpa_auth_ft.c417 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 Dwpa_auth.c1418 int key_data_len, pad_len = 0; local
1459 pad_len = key_data_len % 8;
1460 if (pad_len)
1461 pad_len = 8 - pad_len;
1462 key_data_len += pad_len + 8;
1527 if (pad_len)

Completed in 2649 milliseconds