/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
pkcs_1_v1_5_decode.c | 40 unsigned long modulus_len, ps_len, i; local 66 ps_len = i++ - 2; 68 if ((i >= modulus_len) || (ps_len < 8)) { 87 ps_len = i - 2; 90 if (*outlen < (msglen - (2 + ps_len + 1))) { 91 *outlen = msglen - (2 + ps_len + 1); 96 *outlen = (msglen - (2 + ps_len + 1)); 97 XMEMCPY(out, &msg[2 + ps_len + 1], *outlen);
|
pkcs_1_v1_5_encode.c | 42 unsigned long modulus_len, ps_len, i; local 73 ps_len = modulus_len - msglen - 3; 77 if (prng_descriptor[prng_idx].read(ps, ps_len, prng) != ps_len) { 83 for (i = 0; i < ps_len; i++) { 92 XMEMSET(ps, 0xFF, ps_len); 98 out[2 + ps_len] = 0x00; 99 XMEMCPY(&out[2 + ps_len + 1], msg, msglen);
|
/external/wpa_supplicant_8/src/tls/ |
pkcs1.c | 26 size_t ps_len; local 51 ps_len = modlen - inlen - 3; 54 os_memset(pos, 0x00, ps_len); 55 pos += ps_len; 58 os_memset(pos, 0xff, ps_len); 59 pos += ps_len; 62 if (os_get_random(pos, ps_len) < 0) { 67 while (ps_len--) {
|
/external/wpa_supplicant/ |
crypto_internal.c | 457 size_t ps_len; local 482 ps_len = modlen - inlen - 3; 485 os_memset(pos, 0x00, ps_len); 486 pos += ps_len; 489 os_memset(pos, 0xff, ps_len); 490 pos += ps_len; 493 if (os_get_random(pos, ps_len) < 0) { 498 while (ps_len--) {
|
crypto_libtomcrypt.c | 496 size_t ps_len; local 521 ps_len = modlen - inlen - 3; 524 os_memset(pos, 0x00, ps_len); 525 pos += ps_len; 528 os_memset(pos, 0xff, ps_len); 529 pos += ps_len; 532 if (os_get_random(pos, ps_len) < 0) { 537 while (ps_len--) {
|
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
crypto_libtomcrypt.c | 496 size_t ps_len; local 521 ps_len = modlen - inlen - 3; 524 os_memset(pos, 0x00, ps_len); 525 pos += ps_len; 528 os_memset(pos, 0xff, ps_len); 529 pos += ps_len; 532 if (os_get_random(pos, ps_len) < 0) { 537 while (ps_len--) {
|
crypto_internal.c | 573 size_t ps_len; local 598 ps_len = modlen - inlen - 3; 601 os_memset(pos, 0x00, ps_len); 602 pos += ps_len; 605 os_memset(pos, 0xff, ps_len); 606 pos += ps_len; 609 if (os_get_random(pos, ps_len) < 0) { 614 while (ps_len--) {
|
/external/wpa_supplicant_8/src/crypto/ |
crypto_libtomcrypt.c | 496 size_t ps_len; local 521 ps_len = modlen - inlen - 3; 524 os_memset(pos, 0x00, ps_len); 525 pos += ps_len; 528 os_memset(pos, 0xff, ps_len); 529 pos += ps_len; 532 if (os_get_random(pos, ps_len) < 0) { 537 while (ps_len--) {
|
/external/bluetooth/bluez/tools/ |
hciattach_ath3k.c | 350 #define PS_LEN 2 399 status.section = PS_LEN; 402 case PS_LEN:
|