| /crypto/ |
| A D | md5.c | 40 u32 a, b, c, d; in md5_transform() local 43 b = hash[1]; in md5_transform() 47 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in md5_transform() 48 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in md5_transform() 49 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in md5_transform() 50 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in md5_transform() 51 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in md5_transform() 55 MD5STEP(F1, a, b, c, d, in[8] + 0x698098d8, 7); in md5_transform() 64 MD5STEP(F2, a, b, c, d, in[1] + 0xf61e2562, 5); in md5_transform() 65 MD5STEP(F2, d, a, b, c, in[6] + 0xc040b340, 9); in md5_transform() [all …]
|
| A D | md4.c | 63 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 64 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 65 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 69 u32 a, b, c, d; in md4_transform() local 72 b = hash[1]; in md4_transform() 76 ROUND1(a, b, c, d, in[0], 3); in md4_transform() 77 ROUND1(d, a, b, c, in[1], 7); in md4_transform() 80 ROUND1(a, b, c, d, in[4], 3); in md4_transform() 81 ROUND1(d, a, b, c, in[5], 7); in md4_transform() 84 ROUND1(a, b, c, d, in[8], 3); in md4_transform() [all …]
|
| A D | twofish_generic.c | 44 #define G2(b) \ argument 45 (ctx->s[1][(b) & 0xFF]) ^ (ctx->s[2][((b) >> 8) & 0xFF]) \ 46 ^ (ctx->s[3][((b) >> 16) & 0xFF]) ^ (ctx->s[0][(b) >> 24]) 54 x = G1 (a); y = G2 (b); \ 61 x = G1 (a); y = G2 (b); \ 100 u32 a, b, c, d; in twofish_encrypt() local 107 INPACK (1, b, 1); in twofish_encrypt() 125 OUTUNPACK (3, b, 7); in twofish_encrypt() 135 u32 a, b, c, d; in twofish_decrypt() local 144 INPACK (3, b, 7); in twofish_decrypt() [all …]
|
| A D | twofish_common.c | 468 #define CALC_S(a, b, c, d, i, w, x, y, z) \ argument 472 (b) ^= exp_to_poly[tmp + (x)]; \ 483 #define CALC_SB_2(i, a, b) \ argument 491 #define CALC_SB192_2(i, a, b) \ argument 499 #define CALC_SB256_2(i, a, b) \ argument 529 #define CALC_K_2(a, b, c, d, j) \ argument 542 #define CALC_K192_2(a, b, c, d, j) \ argument 544 q1[b ^ key[(j) + 17]], \ 555 #define CALC_K256_2(a, b, j) \ argument 556 CALC_K192_2 (q1[b ^ key[(j) + 24]], \ [all …]
|
| A D | xts.c | 146 le128 b; in xts_cts_done() local 151 scatterwalk_map_and_copy(&b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in xts_cts_done() 152 le128_xor(&b, &rctx->t, &b); in xts_cts_done() 168 le128 b[2]; in xts_cts_final() local 174 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in xts_cts_final() 175 b[1] = b[0]; in xts_cts_final() 176 scatterwalk_map_and_copy(b, req->src, offset, tail, 0); in xts_cts_final() 178 le128_xor(b, &rctx->t, b); in xts_cts_final() 192 scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0); in xts_cts_final() 193 le128_xor(b, &rctx->t, b); in xts_cts_final() [all …]
|
| A D | ecrdsa_defs.h | 59 .b = cp256a_b 93 .b = cp256b_b 131 .b = cp256c_b 181 .b = tc512a_b 227 .b = tc512b_b
|
| A D | blake2b_generic.c | 46 #define G(r,i,a,b,c,d) \ argument 48 a = a + b + m[blake2b_sigma[r][2*i+0]]; \ 51 b = ror64(b ^ c, 24); \ 52 a = a + b + m[blake2b_sigma[r][2*i+1]]; \ 55 b = ror64(b ^ c, 63); \
|
| A D | ecc_curve_defs.h | 29 .b = nist_p192_b 56 .b = nist_p256_b 89 .b = nist_p384_b 134 .b = nist_p521_b
|
| A D | aegis128-neon-inner.c | 182 static uint8x16_t vqtbl1q_u8(uint8x16_t a, uint8x16_t b) in vqtbl1q_u8() argument 189 return vcombine_u8(vtbl2_u8(__a.pair, vget_low_u8(b)), in vqtbl1q_u8() 190 vtbl2_u8(__a.pair, vget_high_u8(b))); in vqtbl1q_u8() 193 static uint8x16_t vqtbx1q_u8(uint8x16_t v, uint8x16_t a, uint8x16_t b) in vqtbx1q_u8() argument 200 return vcombine_u8(vtbx2_u8(vget_low_u8(v), __a.pair, vget_low_u8(b)), in vqtbx1q_u8() 201 vtbx2_u8(vget_high_u8(v), __a.pair, vget_high_u8(b))); in vqtbx1q_u8()
|
| A D | blowfish_common.c | 305 #define ROUND(a, b, n) ({ b ^= P[n]; a ^= bf_F(b); }) argument
|
| A D | testmgr.h | 681 be64_to_cpua(ad, 59, ad, 88, 27, d6, 92, 6b), 683 be64_to_cpua(ba, e5, 93, 83, 6e, b6, 3b, 63), 691 be64_to_cpua(ef, 95, 52, 7b, a0, 0f, e4, 18), 713 be64_to_cpua(83, 7b, 12, e6, b6, 5b, cb, d4), 714 be64_to_cpua(14, f8, 11, 2b, 55, dc, ae, 37), 715 be64_to_cpua(5a, 8b, 82, 69, 7e, 8a, 0a, 09), 787 be64_to_cpua(93, 12, 3b, 3b, 28, fb, 6d, e1), 959 be64_to_cpua(69, f4, 3b, 4f, 47, cf, 9b, 16), 1058 be64_to_cpua(3f, dd, 15, 1b, 68, 2b, 9d, 8b), 1208 be64_to_cpua(6c, a6, 9b, 89, 8b, 1e, fd, 09), [all …]
|
| A D | blowfish_generic.c | 35 #define ROUND(a, b, n) ({ b ^= P[n]; a ^= bf_F(b); }) argument
|
| A D | adiantum.c | 188 u64 x = le64_to_cpu(v1->b); in le128_add() 189 u64 y = le64_to_cpu(v2->b); in le128_add() 191 r->b = cpu_to_le64(x + y); in le128_add() 199 u64 x = le64_to_cpu(v1->b); in le128_sub() 200 u64 y = le64_to_cpu(v2->b); in le128_sub() 202 r->b = cpu_to_le64(x - y); in le128_sub()
|
| A D | algapi.c | 1005 u8 *b = (a + size); in crypto_inc_byte() local 1009 c = *--b + 1; in crypto_inc_byte() 1010 *b = c; in crypto_inc_byte() 1018 __be32 *b = (__be32 *)(a + size); in crypto_inc() local 1022 IS_ALIGNED((unsigned long)b, __alignof__(*b))) in crypto_inc() 1024 c = be32_to_cpu(*--b) + 1; in crypto_inc() 1025 *b = cpu_to_be32(c); in crypto_inc()
|
| A D | polyval-generic.c | 72 u64 b = get_unaligned((const u64 *)&src[8]); in copy_and_reverse() local 75 put_unaligned(swab64(b), (u64 *)&dst[0]); in copy_and_reverse()
|
| A D | ecc.c | 405 static uint128_t add_128_128(uint128_t a, uint128_t b) in add_128_128() argument 409 result.m_low = a.m_low + b.m_low; in add_128_128() 410 result.m_high = a.m_high + b.m_high + (result.m_low < a.m_low); in add_128_128() 1042 u64 a[ECC_MAX_DIGITS], b[ECC_MAX_DIGITS]; in vli_mod_inv() local 1053 vli_set(b, mod, ndigits); in vli_mod_inv() 1058 while ((cmp_result = vli_cmp(a, b, ndigits)) != 0) { in vli_mod_inv() 1070 } else if (EVEN(b)) { in vli_mod_inv() 1071 vli_rshift1(b, ndigits); in vli_mod_inv() 1080 vli_sub(a, a, b, ndigits); in vli_mod_inv() 1094 vli_sub(b, b, a, ndigits); in vli_mod_inv() [all …]
|
| A D | serpent_generic.c | 24 #define keyiter(a, b, c, d, i, j) \ argument 25 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; })
|
| A D | lrw.c | 57 static inline void lrw_setbit128_bbe(void *b, int bit) in lrw_setbit128_bbe() argument 65 ), b); in lrw_setbit128_bbe()
|
| A D | rmd160.c | 39 #define ROUND(a, b, c, d, e, f, k, x, s) { \ argument 40 (a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \
|
| A D | testmgr.c | 979 u8 b; in generate_random_bytes() local 992 b = 0x00; in generate_random_bytes() 995 b = 0xff; in generate_random_bytes() 998 b = prandom_u8(rng); in generate_random_bytes() 1001 memset(buf, b, count); in generate_random_bytes() 1007 b = prandom_u8(rng); in generate_random_bytes() 1008 for (i = 0; i < count; i++, b += increment) in generate_random_bytes() 1009 buf[i] = b; in generate_random_bytes()
|
| A D | gcm.c | 227 lengths.b = cpu_to_be64(gctx->cryptlen * 8); in gcm_hash_len()
|
| /crypto/asymmetric_keys/ |
| A D | x509_public_key.c | 109 bool b = asymmetric_key_id_same(cert->id, cert->sig->auth_ids[0]); in x509_check_for_self_signed() local 111 if (!a && !b) in x509_check_for_self_signed() 115 if (((a && !b) || (b && !a)) && in x509_check_for_self_signed()
|
| A D | verify_pefile.c | 208 static int pefile_compare_shdrs(const void *a, const void *b) in pefile_compare_shdrs() argument 211 const struct section_header *shdrb = b; in pefile_compare_shdrs()
|
| /crypto/async_tx/ |
| A D | async_raid6_recov.c | 28 u8 *a, *b, *c; in async_sum_product() local 74 b = page_address(srcs[1]) + src_offs[1]; in async_sum_product() 79 bx = bmul[*b++]; in async_sum_product() 158 struct page *p, *q, *a, *b; in __2data_recov_4() local 175 b = blocks[failb]; in __2data_recov_4() 187 tx = async_sum_product(b, b_off, srcs, src_offs, coef, bytes, submit); in __2data_recov_4() 192 srcs[1] = b; in __2data_recov_4()
|
| A D | async_pq.c | 26 #define P(b, d) (b[d-2]) argument 27 #define Q(b, d) (b[d-1]) argument
|