/crypto/ |
D | gf128mul.c | 263 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 …]
|
D | twofish_common.c | 529 #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 …]
|
D | blowfish_common.c | 349 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()
|
D | anubis.c | 535 int j = i; in anubis_setkey() local 536 inter[i] = T0[(kappa[j--] >> 24) ]; in anubis_setkey() 537 if (j < 0) in anubis_setkey() 538 j = N - 1; in anubis_setkey() 539 inter[i] ^= T1[(kappa[j--] >> 16) & 0xff]; in anubis_setkey() 540 if (j < 0) in anubis_setkey() 541 j = N - 1; in anubis_setkey() 542 inter[i] ^= T2[(kappa[j--] >> 8) & 0xff]; in anubis_setkey() 543 if (j < 0) in anubis_setkey() 544 j = N - 1; in anubis_setkey() [all …]
|
D | sha512_generic.c | 113 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()
|
D | tcrypt.c | 257 unsigned int i, j, iv_len; in test_mb_aead_speed() local 353 for (j = 0; j < tcount; j++) { in test_mb_aead_speed() 354 if (template[j].klen == *keysize) { in test_mb_aead_speed() 355 key = template[j].key; in test_mb_aead_speed() 375 for (j = 0; j < num_mb; ++j) { in test_mb_aead_speed() 376 struct test_mb_aead_data *cur = &data[j]; in test_mb_aead_speed() 523 unsigned int i, j; in test_aead_speed() local 603 for (j = 0; j < tcount; j++) { in test_aead_speed() 604 if (template[j].klen == *keysize) { in test_aead_speed() 605 key = template[j].key; in test_aead_speed() [all …]
|
D | xor.c | 63 unsigned long now, j; in do_xor_speed() local 78 j = jiffies; in do_xor_speed() 80 while ((now = jiffies) == j) in do_xor_speed()
|
D | jitterentropy.c | 188 __u64 j = 0; in jent_lfsr_time() local 201 for (j = 0; j < fold_loop_cnt; j++) { in jent_lfsr_time()
|
D | drbg.c | 2094 unsigned int j = 0; /* pointer to drbg_cores */ in drbg_init() local 2117 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++) in drbg_init() 2118 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 1); in drbg_init() 2119 for (j = 0; ARRAY_SIZE(drbg_cores) > j; j++, i++) in drbg_init() 2120 drbg_fill_array(&drbg_algs[i], &drbg_cores[j], 0); in drbg_init()
|
D | ecc.c | 623 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()
|
D | testmgr.c | 2352 unsigned int i, j, k; in test_cipher() local 2368 j = 0; in test_cipher() 2376 j++; in test_cipher() 2395 algo, j, template[i].setkey_error, ret, in test_cipher() 2401 algo, j, template[i].setkey_error); in test_cipher() 2419 "on %s for %s\n", j, e, algo); in test_cipher() 3178 int err = 0, i, j, seedsize; in test_cprng() local 3207 for (j = 0; j < template[i].loops; j++) { in test_cprng() 5197 int j; in alg_test() local 5226 j = alg_find_test(driver); in alg_test() [all …]
|
D | af_alg.c | 590 unsigned int i, j = 0; in af_alg_pull_tsgl() local 615 sg_set_page(dst + j, page, in af_alg_pull_tsgl() 619 j++; in af_alg_pull_tsgl()
|
D | serpent_generic.c | 29 #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/ |
D | raid6test.c | 119 static int test_disks(int i, int j, int disks) in test_disks() argument 127 dataptrs[j] = recovj; in test_disks() 129 raid6_dual_recov(disks, PAGE_SIZE, i, j, dataptrs); in test_disks() 132 errb = memcmp(page_address(data[j]), page_address(recovj), PAGE_SIZE); in test_disks() 135 __func__, i, j, i, disk_type(i, disks), j, disk_type(j, disks), in test_disks() 139 dataptrs[j] = data[j]; in test_disks() 150 int i, j; in test() local 175 for (j = i+1; j < disks; j++) { in test() 177 err += test_disks(i, j, disks); in test()
|
D | async_pq.c | 186 int i, j; in async_gen_syndrome() local 196 for (i = 0, j = 0; i < src_cnt; i++) { in async_gen_syndrome() 199 unmap->addr[j] = dma_map_page(device->dev, blocks[i], offset, in async_gen_syndrome() 201 coefs[j] = raid6_gfexp[i]; in async_gen_syndrome() 203 j++; in async_gen_syndrome() 212 unmap->addr[j++] = dma_map_page(device->dev, P(blocks, disks), in async_gen_syndrome() 215 unmap->addr[j++] = 0; in async_gen_syndrome() 221 unmap->addr[j++] = dma_map_page(device->dev, Q(blocks, disks), in async_gen_syndrome() 224 unmap->addr[j++] = 0; in async_gen_syndrome() 228 tx = do_async_gen_syndrome(chan, coefs, j, unmap, dma_flags, submit); in async_gen_syndrome() [all …]
|
D | async_xor.c | 176 int i, j; in async_xor() local 182 for (i = 0, j = 0; i < src_cnt; i++) { in async_xor() 186 unmap->addr[j++] = dma_map_page(device->dev, src_list[i], in async_xor() 191 unmap->addr[j] = dma_map_page(device->dev, dest, offset, len, in async_xor()
|