/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_record.c | 30 int tlsv1_record_set_cipher_suite(struct tlsv1_record_layer *rl, in tlsv1_record_set_cipher_suite() argument 38 rl->cipher_suite = cipher_suite; in tlsv1_record_set_cipher_suite() 45 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_MD5; in tlsv1_record_set_cipher_suite() 46 rl->hash_size = MD5_MAC_LEN; in tlsv1_record_set_cipher_suite() 48 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA1; in tlsv1_record_set_cipher_suite() 49 rl->hash_size = SHA1_MAC_LEN; in tlsv1_record_set_cipher_suite() 51 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA256; in tlsv1_record_set_cipher_suite() 52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite() 59 rl->key_material_len = data->key_material; in tlsv1_record_set_cipher_suite() 60 rl->iv_size = data->block_size; in tlsv1_record_set_cipher_suite() [all …]
|
D | tlsv1_client.c | 65 if (tls_prf(conn->rl.tls_version, in tls_derive_keys() 79 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len); in tls_derive_keys() 80 if (conn->rl.tls_version == TLS_VERSION_1) in tls_derive_keys() 81 key_block_len += 2 * conn->rl.iv_size; in tls_derive_keys() 82 if (tls_prf(conn->rl.tls_version, in tls_derive_keys() 95 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys() 96 pos += conn->rl.hash_size; in tls_derive_keys() 98 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys() 99 pos += conn->rl.hash_size; in tls_derive_keys() 102 os_memcpy(conn->rl.write_key, pos, conn->rl.key_material_len); in tls_derive_keys() [all …]
|
D | tlsv1_server.c | 71 if (tls_prf(conn->rl.tls_version, in tlsv1_server_derive_keys() 85 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_derive_keys() 86 conn->rl.iv_size); in tlsv1_server_derive_keys() 87 if (tls_prf(conn->rl.tls_version, in tlsv1_server_derive_keys() 100 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys() 101 pos += conn->rl.hash_size; in tlsv1_server_derive_keys() 103 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys() 104 pos += conn->rl.hash_size; in tlsv1_server_derive_keys() 107 os_memcpy(conn->rl.read_key, pos, conn->rl.key_material_len); in tlsv1_server_derive_keys() 108 pos += conn->rl.key_material_len; in tlsv1_server_derive_keys() [all …]
|
D | tlsv1_record.h | 60 int tlsv1_record_set_cipher_suite(struct tlsv1_record_layer *rl, 62 int tlsv1_record_change_write_cipher(struct tlsv1_record_layer *rl); 63 int tlsv1_record_change_read_cipher(struct tlsv1_record_layer *rl); 64 int tlsv1_record_send(struct tlsv1_record_layer *rl, u8 content_type, u8 *buf, 67 int tlsv1_record_receive(struct tlsv1_record_layer *rl,
|
D | tlsv1_server_write.c | 85 WPA_PUT_BE16(pos, conn->rl.tls_version); in tls_write_server_hello() 170 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_hello() 194 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_server_certificate() 260 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_certificate() 347 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_certificate_status() 377 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_server_key_exchange() 383 if (!tls_server_key_exchange_allowed(conn->rl.cipher_suite)) { in tls_write_server_key_exchange() 566 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_write_server_key_exchange() 569 conn->rl.tls_version, TLS_HASH_ALG_SHA256, in tls_write_server_key_exchange() 618 conn->rl.tls_version, conn->client_random, in tls_write_server_key_exchange() [all …]
|
D | tlsv1_client_write.c | 129 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_send_client_hello() 245 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_send_client_hello() 327 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_client_certificate() 523 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_client_key_exchange() 556 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_client_key_exchange() 618 if (conn->rl.tls_version == TLS_VERSION_1_2) { in tls_write_client_certificate_verify() 683 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_write_client_certificate_verify() 727 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_client_certificate_verify() 755 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC, in tls_write_client_change_cipher_spec() 764 if (tlsv1_record_change_write_cipher(&conn->rl) < 0) { in tls_write_client_change_cipher_spec() [all …]
|
/external/curl/tests/libtest/ |
D | lib518.c | 107 struct rlimit rl; in rlimit() local 116 if(sizeof(rl.rlim_max) > sizeof(long)) in rlimit() 120 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; in rlimit() 124 if(getrlimit(RLIMIT_NOFILE, &rl) != 0) { in rlimit() 133 if(rl.rlim_cur == RLIM_INFINITY) in rlimit() 137 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); in rlimit() 141 if(rl.rlim_max == RLIM_INFINITY) in rlimit() 145 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit() 163 if(rl.rlim_cur != rl.rlim_max) { in rlimit() 166 if((rl.rlim_cur > 0) && in rlimit() [all …]
|
D | lib537.c | 109 struct rlimit rl; local 117 if(sizeof(rl.rlim_max) > sizeof(long)) 121 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; 125 if(getrlimit(RLIMIT_NOFILE, &rl) != 0) { 134 if(rl.rlim_cur == RLIM_INFINITY) 138 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); 142 if(rl.rlim_max == RLIM_INFINITY) 146 snprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 158 if(rl.rlim_cur != rl.rlim_max) { 161 if((rl.rlim_cur > 0) && [all …]
|
/external/python/cpython2/Modules/ |
D | resource.c | 116 struct rlimit rl; in resource_getrlimit() local 128 if (getrlimit(resource, &rl) == -1) { in resource_getrlimit() 134 if (sizeof(rl.rlim_cur) > sizeof(long)) { in resource_getrlimit() 136 (PY_LONG_LONG) rl.rlim_cur, in resource_getrlimit() 137 (PY_LONG_LONG) rl.rlim_max); in resource_getrlimit() 140 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in resource_getrlimit() 146 struct rlimit rl; in resource_setrlimit() local 173 rl.rlim_cur = PyInt_AsLong(curobj); in resource_setrlimit() 174 if (rl.rlim_cur == (rlim_t)-1 && PyErr_Occurred()) in resource_setrlimit() 176 rl.rlim_max = PyInt_AsLong(maxobj); in resource_setrlimit() [all …]
|
/external/ltp/testcases/kernel/syscalls/mlock/ |
D | mlock02.c | 99 struct rlimit rl; in test_enomem1() local 114 rl.rlim_cur = RLIM_INFINITY; in test_enomem1() 115 rl.rlim_max = RLIM_INFINITY; in test_enomem1() 116 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); in test_enomem1() 130 struct rlimit rl; in test_enomem2() local 139 rl.rlim_max = len - 1; in test_enomem2() 140 rl.rlim_cur = len - 1; in test_enomem2() 141 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); in test_enomem2() 160 struct rlimit rl; in test_eperm() local 168 rl.rlim_max = 0; in test_eperm() [all …]
|
/external/ltp/testcases/kernel/syscalls/mlockall/ |
D | mlockall02.c | 178 struct rlimit rl; in setup_test() local 184 rl.rlim_max = 10; in setup_test() 185 rl.rlim_cur = 7; in setup_test() 187 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 207 rl.rlim_max = 0; in setup_test() 208 rl.rlim_cur = 0; in setup_test() 209 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 232 struct rlimit rl; in cleanup_test() local 239 rl.rlim_max = -1; in cleanup_test() 240 rl.rlim_cur = -1; in cleanup_test() [all …]
|
D | mlockall03.c | 214 struct rlimit rl; in setup_test() local 229 rl.rlim_max = 10; in setup_test() 230 rl.rlim_cur = 7; in setup_test() 232 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 240 rl.rlim_max = 0; in setup_test() 241 rl.rlim_cur = 0; in setup_test() 243 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 266 struct rlimit rl; in cleanup_test() local 276 rl.rlim_max = -1; in cleanup_test() 277 rl.rlim_cur = -1; in cleanup_test() [all …]
|
/external/libjpeg-turbo/simd/ |
D | jdcolext-altivec.c | 49 crl, crh, rl, rh, gl, gh, bl, bh, g0w, g1w, g2w, g3w; in jsimd_ycc_rgb_convert_altivec() local 122 rl = vec_add(crl, crl); in jsimd_ycc_rgb_convert_altivec() 124 rl = vec_madds(rl, pw_f0402, pw_one); in jsimd_ycc_rgb_convert_altivec() 126 rl = vec_sra(rl, (__vector unsigned short)pw_one); in jsimd_ycc_rgb_convert_altivec() 128 rl = vec_add(rl, crl); in jsimd_ycc_rgb_convert_altivec() 130 rl = vec_add(rl, yl); in jsimd_ycc_rgb_convert_altivec() 153 rg0 = vec_mergeh(rl, gl); in jsimd_ycc_rgb_convert_altivec() 155 rg1 = vec_mergel(rl, gl); in jsimd_ycc_rgb_convert_altivec()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/ |
D | 4-1.c | 64 struct rlimit rl; in child() local 70 rl.rlim_max = MAX_MEM; in child() 71 rl.rlim_cur = MAX_MEM; in child() 72 rc = setrlimit(RLIMIT_DATA, &rl); in child() 73 rc |= setrlimit(RLIMIT_AS, &rl); in child()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_addrmanagmt_rpcb_getmaps/ |
D | tirpc_rpcb_getmaps.c | 56 rpcblist *rl = NULL; in main() local 69 rl = rpcb_getmaps(nconf, argc[1]); in main() 72 printf("RList @ %p\n", rl); in main() 75 test_status = (rl != NULL) ? 0 : 1; in main()
|
/external/clang/test/CodeGen/ |
D | arm-atomics-m.c | 30 long long rl; in test_presence() local 31 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 33 rl = 0; in test_presence() 34 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
D | arm-atomics-m0.c | 30 long long rl; in test_presence() local 31 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 33 rl = 0; in test_presence() 34 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
D | arm-atomics.c | 32 long long rl; in test_presence() local 33 __atomic_load(&l, &rl, memory_order_seq_cst); in test_presence() 35 rl = 0; in test_presence() 36 __atomic_store(&l, &rl, memory_order_seq_cst); in test_presence()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/ |
D | s-c.c | 99 struct rlimit rl; in main() local 116 rl.rlim_max = 1024 * 1024 * 32 * SCALABILITY_FACTOR; in main() 117 rl.rlim_cur = rl.rlim_max; in main() 118 if ((ret = setrlimit(RLIMIT_AS, &rl))) { in main() 122 output(";Memory is now limited to %dMb\n", rl.rlim_max >> 20); in main()
|
/external/python/cpython2/Demo/pdist/ |
D | cvslock.py | 252 rl = None 260 rl = ReadLock(repository) 262 rl.unlock() 267 if rl: 268 rl.unlock() 273 rl = None
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/ |
D | s-c.c | 108 struct rlimit rl; in main() local 116 rl.rlim_max = 1024 * 1024 * 32 * SCALABILITY_FACTOR; in main() 117 rl.rlim_cur = rl.rlim_max; in main() 118 if ((ret = setrlimit(RLIMIT_AS, &rl))) { in main() 122 output(";Memory is now limited to %dMb\n", rl.rlim_max >> 20); in main()
|
/external/libxml2/ |
D | regressions.py | 74 rl = len(res) 76 if el != rl: 77 print 'Length of expected is %d, result is %d' % (el, rl) 79 for i in range(min(el, rl)): 83 if el > rl: 84 for i in range(rl, el): 87 elif rl > el: 88 for i in range (el, rl):
|
/external/python/cpython2/Mac/Modules/ |
D | autoGIL.c | 55 CFRunLoopRef rl; in autoGIL_installAutoGIL() local 69 rl = CFRunLoopGetCurrent(); in autoGIL_installAutoGIL() 70 if (rl == NULL) { in autoGIL_installAutoGIL() 96 CFRunLoopAddObserver(rl, observer, kCFRunLoopDefaultMode); in autoGIL_installAutoGIL()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/ |
D | 5-1.c | 101 struct rlimit rl; in main() local 157 rl.rlim_max = 1024 * 1024 * 64; in main() 158 rl.rlim_cur = 1024 * 1024 * 64; in main() 159 if ((ret = setrlimit(RLIMIT_AS, &rl))) { in main()
|
/external/toybox/toys/posix/ |
D | ulimit.c | 95 rlim_t rl = (toys.optflags&FLAG_H) ? rr.rlim_max : rr.rlim_cur; in ulimit_main() local 97 if (rl == RLIM_INFINITY) printf("unlimited\n"); in ulimit_main() 98 else printf("%ld\n", (long)rl); in ulimit_main()
|