/external/eigen/unsupported/test/ |
D | cxx11_tensor_of_float16_cuda.cu | 28 int num_elem = 101; in test_cuda_numext() local 30 float* d_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_numext() 31 bool* d_res_half = (bool*)gpu_device.allocate(num_elem * sizeof(bool)); in test_cuda_numext() 32 bool* d_res_float = (bool*)gpu_device.allocate(num_elem * sizeof(bool)); in test_cuda_numext() 35 d_float, num_elem); in test_cuda_numext() 37 d_res_half, num_elem); in test_cuda_numext() 39 d_res_float, num_elem); in test_cuda_numext() 45 Tensor<bool, 1> half_prec(num_elem); in test_cuda_numext() 46 Tensor<bool, 1> full_prec(num_elem); in test_cuda_numext() 47 gpu_device.memcpyDeviceToHost(half_prec.data(), d_res_half, num_elem*sizeof(bool)); in test_cuda_numext() [all …]
|
D | cxx11_tensor_cast_float16_cuda.cu | 27 int num_elem = 101; in test_cuda_conversion() local 29 Tensor<float, 1> floats(num_elem); in test_cuda_conversion() 32 float* d_float = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_conversion() 33 Eigen::half* d_half = (Eigen::half*)gpu_device.allocate(num_elem * sizeof(Eigen::half)); in test_cuda_conversion() 34 float* d_conv = (float*)gpu_device.allocate(num_elem * sizeof(float)); in test_cuda_conversion() 37 d_float, num_elem); in test_cuda_conversion() 39 d_half, num_elem); in test_cuda_conversion() 41 d_conv, num_elem); in test_cuda_conversion() 43 gpu_device.memcpyHostToDevice(d_float, floats.data(), num_elem*sizeof(float)); in test_cuda_conversion() 48 Tensor<float, 1> initial(num_elem); in test_cuda_conversion() [all …]
|
/external/wpa_supplicant_8/src/crypto/ |
D | aes-siv.c | 65 size_t num_elem, const u8 *addr[], size_t *len, u8 *mac) in aes_s2v() argument 74 if (!num_elem) { in aes_s2v() 88 for (i = 0; i < num_elem - 1; i++) { in aes_s2v() 122 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_encrypt() argument 132 if (num_elem > ARRAY_SIZE(_addr) - 1 || in aes_siv_encrypt() 140 for (i = 0; i < num_elem; i++) { in aes_siv_encrypt() 144 _addr[num_elem] = pw; in aes_siv_encrypt() 145 _len[num_elem] = pwlen; in aes_siv_encrypt() 147 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt() 165 size_t num_elem, const u8 *addr[], const size_t *len, in aes_siv_decrypt() argument [all …]
|
D | sha384.c | 26 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha384_vector() argument 34 if (num_elem > 5) { in hmac_sha384_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha384_vector() 73 if (sha384_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha384_vector()
|
D | sha256.c | 26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha256_vector() argument 34 if (num_elem > 5) { in hmac_sha256_vector() 69 for (i = 0; i < num_elem; i++) { in hmac_sha256_vector() 73 if (sha256_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha256_vector()
|
D | sha1.c | 26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_sha1_vector() argument 35 if (num_elem > 5) { in hmac_sha1_vector() 70 for (i = 0; i < num_elem; i++) { in hmac_sha1_vector() 74 if (sha1_vector(1 + num_elem, _addr, _len, mac)) in hmac_sha1_vector()
|
D | md5.c | 26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, in hmac_md5_vector() argument 35 if (num_elem > 5) { in hmac_md5_vector() 71 for (i = 0; i < num_elem; i++) { in hmac_md5_vector() 75 if (md5_vector(1 + num_elem, _addr, _len, mac)) in hmac_md5_vector()
|
D | crypto_openssl.c | 116 static int openssl_digest_vector(const EVP_MD *type, size_t num_elem, in openssl_digest_vector() argument 135 for (i = 0; i < num_elem; i++) { in openssl_digest_vector() 157 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 159 return openssl_digest_vector(EVP_md4(), num_elem, addr, len, mac); in md4_vector() 227 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 229 return openssl_digest_vector(EVP_md5(), num_elem, addr, len, mac); in md5_vector() 234 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 236 return openssl_digest_vector(EVP_sha1(), num_elem, addr, len, mac); in sha1_vector() 241 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument 244 return openssl_digest_vector(EVP_sha256(), num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | aes-omac1.c | 43 int omac1_aes_vector(const u8 *key, size_t key_len, size_t num_elem, in omac1_aes_vector() argument 60 for (e = 0; e < num_elem; e++) in omac1_aes_vector() 133 int omac1_aes_128_vector(const u8 *key, size_t num_elem, in omac1_aes_128_vector() argument 136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector()
|
D | crypto.h | 32 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); 42 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac); 53 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, 79 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, 90 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, 101 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len,
|
D | crypto_gnutls.c | 15 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 23 for (i = 0; i < num_elem; i++) in md4_vector() 55 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 63 for (i = 0; i < num_elem; i++) in md5_vector() 73 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 81 for (i = 0; i < num_elem; i++) in sha1_vector()
|
D | aes_siv.h | 14 size_t num_elem, const u8 *addr[], const size_t *len, 18 size_t num_elem, const u8 *addr[], const size_t *len,
|
D | sha384-internal.c | 24 int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha384_vector() argument 31 for (i = 0; i < num_elem; i++) in sha384_vector()
|
D | crypto_libtomcrypt.c | 25 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 31 for (i = 0; i < num_elem; i++) in md4_vector() 59 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 65 for (i = 0; i < num_elem; i++) in md5_vector() 72 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 78 for (i = 0; i < num_elem; i++) in sha1_vector()
|
D | aes_wrap.h | 26 size_t num_elem, const u8 *addr[], 28 int __must_check omac1_aes_128_vector(const u8 *key, size_t num_elem,
|
D | crypto_none.c | 15 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument
|
D | md5.h | 14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha256-internal.c | 25 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha256_vector() argument 35 for (i = 0; i < num_elem; i++) in sha256_vector()
|
D | sha384.h | 14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha1.h | 14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha256.h | 14 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
|
D | sha512-internal.c | 24 int sha512_vector(size_t num_elem, const u8 *addr[], const size_t *len, in sha512_vector() argument 31 for (i = 0; i < num_elem; i++) in sha512_vector()
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_common.c | 240 size_t num_elem; in fils_rmsk_to_pmk() local 262 num_elem = 1; in fils_rmsk_to_pmk() 266 num_elem++; in fils_rmsk_to_pmk() 269 res = hmac_sha384_vector(nonces, 2 * FILS_NONCE_LEN, num_elem, in fils_rmsk_to_pmk() 272 res = hmac_sha256_vector(nonces, 2 * FILS_NONCE_LEN, num_elem, in fils_rmsk_to_pmk() 379 size_t num_elem = 4; in fils_key_auth_sk() local 400 num_elem = 6; in fils_key_auth_sk() 405 res = hmac_sha384_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk() 409 res = hmac_sha256_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk() 434 res = hmac_sha384_vector(ick, ick_len, num_elem, addr, len, in fils_key_auth_sk() [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_eke_common.c | 212 size_t num_elem = 1; in eap_eke_prf() local 217 num_elem++; in eap_eke_prf() 223 return hmac_sha1_vector(key, key_len, num_elem, addr, len, res); in eap_eke_prf() 225 return hmac_sha256_vector(key, key_len, num_elem, addr, len, in eap_eke_prf()
|
/external/libpcap/ |
D | pcap-dos.c | 1405 if (!q || !q->num_elem || !q->buf_start) in pktq_check() 1411 for (i = 0; i < q->num_elem; i++) in pktq_check() 1426 q->num_elem = num; in pktq_init() 1457 if (q->out_index >= q->num_elem) in pktq_inc_out() 1470 if (index >= q->num_elem) in pktq_in_index()
|