Home
last modified time | relevance | path

Searched refs:j (Results 1 – 16 of 16) sorted by relevance

/crypto/
Dgf128mul.c263 int i, j, k; in gf128mul_init_64k_bbe() local
279 for (j = 1; j <= 64; j <<= 1) in gf128mul_init_64k_bbe()
280 gf128mul_x_bbe(&t->t[0]->t[j + j], &t->t[0]->t[j]); in gf128mul_init_64k_bbe()
283 for (j = 2; j < 256; j += j) in gf128mul_init_64k_bbe()
284 for (k = 1; k < j; ++k) in gf128mul_init_64k_bbe()
285 be128_xor(&t->t[i]->t[j + k], in gf128mul_init_64k_bbe()
286 &t->t[i]->t[j], &t->t[i]->t[k]); in gf128mul_init_64k_bbe()
291 for (j = 128; j > 0; j >>= 1) { in gf128mul_init_64k_bbe()
292 t->t[i]->t[j] = t->t[i - 1]->t[j]; in gf128mul_init_64k_bbe()
293 gf128mul_x8_bbe(&t->t[i]->t[j]); in gf128mul_init_64k_bbe()
[all …]
Dtwofish_common.c529 #define CALC_K_2(a, b, c, d, j) \ argument
530 mds[0][q0[a ^ key[(j) + 8]] ^ key[j]] \
531 ^ mds[1][q0[b ^ key[(j) + 9]] ^ key[(j) + 1]] \
532 ^ mds[2][q1[c ^ key[(j) + 10]] ^ key[(j) + 2]] \
533 ^ mds[3][q1[d ^ key[(j) + 11]] ^ key[(j) + 3]]
535 #define CALC_K(a, j, k, l, m, n) \ argument
539 x += y; y += x; ctx->a[j] = x; \
540 ctx->a[(j) + 1] = rol32(y, 9)
542 #define CALC_K192_2(a, b, c, d, j) \ argument
543 CALC_K_2 (q0[a ^ key[(j) + 16]], \
[all …]
Dblowfish_common.c349 short i, j, count; in blowfish_setkey() local
354 for (j = 0; j < 4; j++, count++) in blowfish_setkey()
362 for (j = 0, i = 0; i < 16 + 2; i++) { in blowfish_setkey()
363 temp = (((u32)key[j] << 24) | in blowfish_setkey()
364 ((u32)key[(j + 1) % keylen] << 16) | in blowfish_setkey()
365 ((u32)key[(j + 2) % keylen] << 8) | in blowfish_setkey()
366 ((u32)key[(j + 3) % keylen])); in blowfish_setkey()
369 j = (j + 4) % keylen; in blowfish_setkey()
383 for (j = 0, count = i * 256; j < 256; j += 2, count += 2) { in blowfish_setkey()
Danubis.c533 int j = i; in anubis_setkey() local
534 inter[i] = T0[(kappa[j--] >> 24) ]; in anubis_setkey()
535 if (j < 0) in anubis_setkey()
536 j = N - 1; in anubis_setkey()
537 inter[i] ^= T1[(kappa[j--] >> 16) & 0xff]; in anubis_setkey()
538 if (j < 0) in anubis_setkey()
539 j = N - 1; in anubis_setkey()
540 inter[i] ^= T2[(kappa[j--] >> 8) & 0xff]; in anubis_setkey()
541 if (j < 0) in anubis_setkey()
542 j = N - 1; in anubis_setkey()
[all …]
Dsha512_generic.c113 int j; in sha512_transform() local
117 for (j = 0; j < 16; j++) in sha512_transform()
118 LOAD_OP(i + j, W, input); in sha512_transform()
120 for (j = 0; j < 16; j++) { in sha512_transform()
121 BLEND_OP(i + j, W); in sha512_transform()
Dtcrypt.c258 unsigned int i, j, iv_len; in test_mb_aead_speed() local
354 for (j = 0; j < tcount; j++) { in test_mb_aead_speed()
355 if (template[j].klen == *keysize) { in test_mb_aead_speed()
356 key = template[j].key; in test_mb_aead_speed()
376 for (j = 0; j < num_mb; ++j) { in test_mb_aead_speed()
377 struct test_mb_aead_data *cur = &data[j]; in test_mb_aead_speed()
524 unsigned int i, j; in test_aead_speed() local
604 for (j = 0; j < tcount; j++) { in test_aead_speed()
605 if (template[j].klen == *keysize) { in test_aead_speed()
606 key = template[j].key; in test_aead_speed()
[all …]
Dxor.c86 int i, j; in do_xor_speed() local
97 for (j = 0; j < REPS; j++) { in do_xor_speed()
Djitterentropy.c400 __u64 j = 0; in jent_lfsr_time() local
413 for (j = 0; j < fold_loop_cnt; j++) { in jent_lfsr_time()
Ddrbg.c2088 unsigned int j = 0; /* pointer to drbg_cores */ in drbg_init() local
2111 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++) in drbg_init()
2112 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 1); in drbg_init()
2113 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++) in drbg_init()
2114 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 0); in drbg_init()
Decc.c623 unsigned int j; in vli_mmod_slow() local
625 for (j = 0; j < ndigits * 2; ++j) { in vli_mmod_slow()
626 u64 diff = v[i][j] - mod_m[j] - borrow; in vli_mmod_slow()
628 if (diff != v[i][j]) in vli_mmod_slow()
629 borrow = (diff > v[i][j]); in vli_mmod_slow()
630 v[1 - i][j] = diff; in vli_mmod_slow()
Dtestmgr.c2619 unsigned int i, j, k; in test_cipher() local
2635 j = 0; in test_cipher()
2643 j++; in test_cipher()
2662 algo, j, template[i].setkey_error, ret, in test_cipher()
2668 algo, j, template[i].setkey_error); in test_cipher()
2686 "on %s for %s\n", j, e, algo); in test_cipher()
3466 int err = 0, i, j, seedsize; in test_cprng() local
3495 for (j = 0; j < template[i].loops; j++) { in test_cprng()
5637 int j; in alg_test() local
5666 j = alg_find_test(driver); in alg_test()
[all …]
Daf_alg.c601 unsigned int i, j = 0; in af_alg_pull_tsgl() local
626 sg_set_page(dst + j, page, in af_alg_pull_tsgl()
630 j++; in af_alg_pull_tsgl()
Dserpent_generic.c29 #define keyiter(a, b, c, d, i, j) \ argument
30 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; })
/crypto/async_tx/
Draid6test.c127 static int test_disks(int i, int j, int disks) in test_disks() argument
135 dataptrs[j] = recovj; in test_disks()
137 raid6_dual_recov(disks, PAGE_SIZE, i, j, dataptrs, dataoffs); in test_disks()
140 errb = memcmp(page_address(data[j]), page_address(recovj), PAGE_SIZE); in test_disks()
143 __func__, i, j, i, disk_type(i, disks), j, disk_type(j, disks), in test_disks()
147 dataptrs[j] = data[j]; in test_disks()
158 int i, j; in test() local
183 for (j = i+1; j < disks; j++) { in test()
185 err += test_disks(i, j, disks); in test()
Dasync_pq.c200 int i, j; in async_gen_syndrome() local
210 for (i = 0, j = 0; i < src_cnt; i++) { in async_gen_syndrome()
213 unmap->addr[j] = dma_map_page(device->dev, blocks[i], in async_gen_syndrome()
215 coefs[j] = raid6_gfexp[i]; in async_gen_syndrome()
217 j++; in async_gen_syndrome()
226 unmap->addr[j++] = dma_map_page(device->dev, P(blocks, disks), in async_gen_syndrome()
230 unmap->addr[j++] = 0; in async_gen_syndrome()
236 unmap->addr[j++] = dma_map_page(device->dev, Q(blocks, disks), in async_gen_syndrome()
240 unmap->addr[j++] = 0; in async_gen_syndrome()
244 tx = do_async_gen_syndrome(chan, coefs, j, unmap, dma_flags, submit); in async_gen_syndrome()
[all …]
Dasync_xor.c200 int i, j; in async_xor_offs() local
206 for (i = 0, j = 0; i < src_cnt; i++) { in async_xor_offs()
210 unmap->addr[j++] = dma_map_page(device->dev, src_list[i], in async_xor_offs()
216 unmap->addr[j] = dma_map_page(device->dev, dest, offset, len, in async_xor_offs()