/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 | 88 WPA_PUT_BE16(pos, conn->rl.tls_version); in tls_write_server_hello() 173 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_hello() 197 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_server_certificate() 263 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_certificate() 350 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_certificate_status() 380 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_server_key_exchange() 386 if (!tls_server_key_exchange_allowed(conn->rl.cipher_suite)) { in tls_write_server_key_exchange() 569 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_write_server_key_exchange() 572 conn->rl.tls_version, TLS_HASH_ALG_SHA256, in tls_write_server_key_exchange() 621 conn->rl.tls_version, conn->client_random, in tls_write_server_key_exchange() [all …]
|
/external/curl/tests/libtest/ |
D | lib518.c | 105 struct rlimit rl; in rlimit() local 114 if(sizeof(rl.rlim_max) > sizeof(long)) in rlimit() 118 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; in rlimit() 122 if(getrlimit(RLIMIT_NOFILE, &rl) != 0) { in rlimit() 131 if(rl.rlim_cur == RLIM_INFINITY) in rlimit() 135 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); in rlimit() 139 if(rl.rlim_max == RLIM_INFINITY) in rlimit() 143 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); in rlimit() 161 if(rl.rlim_cur != rl.rlim_max) { in rlimit() 164 if((rl.rlim_cur > 0) && in rlimit() [all …]
|
D | lib537.c | 107 struct rlimit rl; local 115 if(sizeof(rl.rlim_max) > sizeof(long)) 119 fmt = (sizeof(rl.rlim_max) < sizeof(long))?fmt_u:fmt_lu; 123 if(getrlimit(RLIMIT_NOFILE, &rl) != 0) { 132 if(rl.rlim_cur == RLIM_INFINITY) 136 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_cur); 140 if(rl.rlim_max == RLIM_INFINITY) 144 msnprintf(strbuff, sizeof(strbuff), fmt, rl.rlim_max); 156 if(rl.rlim_cur != rl.rlim_max) { 159 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 | 179 struct rlimit rl; in setup_test() local 185 rl.rlim_max = 10; in setup_test() 186 rl.rlim_cur = 7; in setup_test() 188 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 208 rl.rlim_max = 0; in setup_test() 209 rl.rlim_cur = 0; in setup_test() 210 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 233 struct rlimit rl; in cleanup_test() local 240 rl.rlim_max = -1; in cleanup_test() 241 rl.rlim_cur = -1; in cleanup_test() [all …]
|
D | mlockall03.c | 215 struct rlimit rl; in setup_test() local 230 rl.rlim_max = 10; in setup_test() 231 rl.rlim_cur = 7; in setup_test() 233 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 241 rl.rlim_max = 0; in setup_test() 242 rl.rlim_cur = 0; in setup_test() 244 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 267 struct rlimit rl; in cleanup_test() local 273 rl.rlim_max = -1; in cleanup_test() 274 rl.rlim_cur = -1; in cleanup_test() [all …]
|
/external/llvm-project/llvm/test/MC/RISCV/ |
D | rv32a-valid.s | 18 # CHECK-ASM-AND-OBJ: lr.w.rl t2, (t3) 20 lr.w.rl t2, (t3) 31 # CHECK-ASM-AND-OBJ: sc.w.rl t4, t3, (t2) 33 sc.w.rl t4, t3, (t2) 94 # CHECK-ASM-AND-OBJ: amoswap.w.rl a4, ra, (s0) 96 amoswap.w.rl a4, ra, (s0) 97 # CHECK-ASM-AND-OBJ: amoadd.w.rl a1, a2, (a3) 99 amoadd.w.rl a1, a2, (a3) 100 # CHECK-ASM-AND-OBJ: amoxor.w.rl a2, a3, (a4) 102 amoxor.w.rl a2, a3, (a4) [all …]
|
D | rv64a-valid.s | 18 # CHECK-ASM-AND-OBJ: lr.d.rl t2, (t3) 21 lr.d.rl t2, (t3) 35 # CHECK-ASM-AND-OBJ: sc.d.rl t4, t3, (t2) 38 sc.d.rl t4, t3, (t2) 119 # CHECK-ASM-AND-OBJ: amoswap.d.rl a4, ra, (s0) 122 amoswap.d.rl a4, ra, (s0) 123 # CHECK-ASM-AND-OBJ: amoadd.d.rl a1, a2, (a3) 126 amoadd.d.rl a1, a2, (a3) 127 # CHECK-ASM-AND-OBJ: amoxor.d.rl a2, a3, (a4) 130 amoxor.d.rl a2, a3, (a4) [all …]
|
/external/python/cpython3/Modules/ |
D | resource.c | 169 rlimit2py(struct rlimit rl) in rlimit2py() argument 171 if (sizeof(rl.rlim_cur) > sizeof(long)) { in rlimit2py() 173 (long long) rl.rlim_cur, in rlimit2py() 174 (long long) rl.rlim_max); in rlimit2py() 176 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py() 191 struct rlimit rl; in resource_getrlimit_impl() local 199 if (getrlimit(resource, &rl) == -1) { in resource_getrlimit_impl() 203 return rlimit2py(rl); in resource_getrlimit_impl() 219 struct rlimit rl; in resource_setrlimit_impl() local 232 if (py2rlimit(limits, &rl) < 0) { in resource_setrlimit_impl() [all …]
|
/external/starlark-go/repl/ |
D | repl.go | 41 rl, err := readline.New(">>> ") 46 defer rl.Close() 48 if err := rep(rl, thread, globals); err != nil { 63 func rep(rl *readline.Instance, thread *starlark.Thread, globals starlark.StringDict) error { 84 rl.SetPrompt(">>> ") 86 line, err := rl.Readline() 87 rl.SetPrompt("... ")
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/ |
D | 4-1.c | 62 struct rlimit rl; in child() local 67 rl.rlim_max = MAX_MEM; in child() 68 rl.rlim_cur = MAX_MEM; in child() 69 rc = setrlimit(RLIMIT_DATA, &rl); in child() 70 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 | 54 rpcblist *rl = NULL; in main() local 67 rl = rpcb_getmaps(nconf, argc[1]); in main() 70 printf("RList @ %p\n", rl); in main() 73 test_status = (rl != NULL) ? 0 : 1; in main()
|
/external/clang/test/CodeGen/ |
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()
|
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()
|
/external/llvm-project/clang/test/CodeGen/ |
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()
|
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-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()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/ |
D | s-c.c | 92 struct rlimit rl; in main() local 109 rl.rlim_max = 1024 * 1024 * 32 * SCALABILITY_FACTOR; in main() 110 rl.rlim_cur = rl.rlim_max; in main() 111 if ((ret = setrlimit(RLIMIT_AS, &rl))) { in main() 115 output(";Memory is now limited to %dMb\n", rl.rlim_max >> 20); in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/ |
D | s-c.c | 101 struct rlimit rl; in main() local 109 rl.rlim_max = 1024 * 1024 * 32 * SCALABILITY_FACTOR; in main() 110 rl.rlim_cur = rl.rlim_max; in main() 111 if ((ret = setrlimit(RLIMIT_AS, &rl))) { in main() 115 output(";Memory is now limited to %dMb\n", rl.rlim_max >> 20); in main()
|