| /lib/crc/arm64/ |
| A D | crc-t10dif-core.S | 166 eor t4.16b, t4.16b, t6.16b 169 eor t8.8b, t8.8b, t3.8b 170 eor t5.8b, t5.8b, t7.8b 171 eor t4.8b, t4.8b, t6.8b 243 eor v0.16b, v0.16b, v8.16b 289 eor v7.16b, v7.16b, v8.16b 293 eor v7.16b, v7.16b, v0.16b 324 eor v2.16b, v2.16b, v3.16b 332 bsl v2.16b, v1.16b, v0.16b 336 eor v7.16b, v3.16b, v0.16b [all …]
|
| /lib/crypto/arm64/ |
| A D | chacha-neon-core.S | 47 eor v3.16b, v3.16b, v0.16b 52 eor v4.16b, v1.16b, v2.16b 58 eor v3.16b, v3.16b, v0.16b 63 eor v4.16b, v1.16b, v2.16b 76 eor v3.16b, v3.16b, v0.16b 81 eor v4.16b, v1.16b, v2.16b 87 eor v3.16b, v3.16b, v0.16b 92 eor v4.16b, v1.16b, v2.16b 764 tbl v0.16b, {v8.16b-v11.16b}, v4.16b 765 tbl v1.16b, {v8.16b-v11.16b}, v5.16b [all …]
|
| A D | sha512-ce-core.S | 79 ext v6.16b, v\i2\().16b, v\i3\().16b, #8 80 ext v5.16b, v5.16b, v5.16b, #8 81 ext v7.16b, v\i1\().16b, v\i2\().16b, #8 84 ext v5.16b, v\in3\().16b, v\in4\().16b, #8 113 CPU_LE( rev64 v12.16b, v12.16b ) 114 CPU_LE( rev64 v13.16b, v13.16b ) 115 CPU_LE( rev64 v14.16b, v14.16b ) 124 mov v0.16b, v8.16b 125 mov v1.16b, v9.16b 126 mov v2.16b, v10.16b [all …]
|
| A D | sha256-ce.S | 30 mov dg2v.16b, dg0v.16b 93 CPU_LE( rev32 v16.16b, v16.16b ) 94 CPU_LE( rev32 v17.16b, v17.16b ) 95 CPU_LE( rev32 v18.16b, v18.16b ) 96 CPU_LE( rev32 v19.16b, v19.16b ) 99 mov dg0v.16b, dgav.16b 100 mov dg1v.16b, dgbv.16b 130 cbnz x2, 0b
|
| /lib/crypto/ |
| A D | des.c | 630 b = k[6]; b &= 0x0e; b <<= 4; b |= k[2] & 0x1e; b = pc1[b]; in des_ekey() 647 pe[ 1 * 2 + 0] = DES_PC2(c, d, a, b); b = rs[b]; in des_ekey() 658 b = k[2]; b &= 0xe0; b >>= 4; b |= k[6] & 0xf0; b = pc1[b + 1]; in des_ekey() 678 pe[ 1 * 2 + 1] = DES_PC2(c, d, a, b); b = rs[b]; in des_ekey() 721 b = k[6]; b &= 0x0e; b <<= 4; b |= k[2] & 0x1e; b = pc1[b]; in dkey() 725 pe[ 1 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey() 727 pe[ 3 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey() 729 pe[ 5 * 2] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in dkey() 738 pe[14 * 2] = DES_PC2(c, d, a, b); b = rs[b]; in dkey() 746 b = k[2]; b &= 0xe0; b >>= 4; b |= k[6] & 0xf0; b = pc1[b + 1]; in dkey() [all …]
|
| A D | memneq.c | 76 get_unaligned((unsigned long *)b); in __crypto_memneq_generic() 79 b += sizeof(unsigned long); in __crypto_memneq_generic() 87 b += 1; in __crypto_memneq_generic() 101 get_unaligned((unsigned long *)b); in __crypto_memneq_16() 104 get_unaligned((unsigned long *)(b + 8)); in __crypto_memneq_16() 108 get_unaligned((unsigned int *)b); in __crypto_memneq_16() 111 get_unaligned((unsigned int *)(b + 4)); in __crypto_memneq_16() 114 get_unaligned((unsigned int *)(b + 8)); in __crypto_memneq_16() 117 get_unaligned((unsigned int *)(b + 12)); in __crypto_memneq_16() 169 return __crypto_memneq_16(a, b); in __crypto_memneq() [all …]
|
| A D | sm3.c | 47 b = rol32((b), 9); \ 52 #define R1(a, b, c, d, e, f, g, h, t, w1, w2) \ argument 53 R(1, a, b, c, d, e, f, g, h, t, w1, w2) 54 #define R2(a, b, c, d, e, f, g, h, t, w1, w2) \ argument 55 R(2, a, b, c, d, e, f, g, h, t, w1, w2) 77 u32 a, b, c, d, e, f, g, h, ss1, ss2; in sm3_transform() local 80 b = sctx->state[1]; in sm3_transform() 88 R1(a, b, c, d, e, f, g, h, K[0], I(0), I(4)); in sm3_transform() 89 R1(d, a, b, c, h, e, f, g, K[1], I(1), I(5)); in sm3_transform() 90 R1(c, d, a, b, g, h, e, f, K[2], I(2), I(6)); in sm3_transform() [all …]
|
| A D | chacha20poly1305.c | 64 } b; in __chacha20poly1305_encrypt() local 66 chacha20_crypt(chacha_state, b.block0, pad0, sizeof(b.block0)); in __chacha20poly1305_encrypt() 81 poly1305_update(&poly1305_state, (u8 *)b.lens, sizeof(b.lens)); in __chacha20poly1305_encrypt() 86 memzero_explicit(&b, sizeof(b)); in __chacha20poly1305_encrypt() 138 } b; in __chacha20poly1305_decrypt() local 143 chacha20_crypt(chacha_state, b.block0, pad0, sizeof(b.block0)); in __chacha20poly1305_decrypt() 157 poly1305_update(&poly1305_state, (u8 *)b.lens, sizeof(b.lens)); in __chacha20poly1305_decrypt() 165 memzero_explicit(&b, sizeof(b)); in __chacha20poly1305_decrypt() 243 b.iv[0] = 0; in chacha20poly1305_crypt_sg_inplace() 246 chacha_init(&chacha_state, b.k, (u8 *)b.iv); in chacha20poly1305_crypt_sg_inplace() [all …]
|
| /lib/math/ |
| A D | gcd.c | 24 b >>= __ffs(b); in binary_gcd() 25 if (b == 1) in binary_gcd() 32 if (a == b) in binary_gcd() 35 if (a < b) in binary_gcd() 36 swap(a, b); in binary_gcd() 37 a -= b; in binary_gcd() 66 b >>= 1; in gcd() 67 if (b == r) in gcd() 78 if (a < b) in gcd() 80 a -= b; in gcd() [all …]
|
| A D | lcm.c | 8 unsigned long lcm(unsigned long a, unsigned long b) in lcm() argument 10 if (a && b) in lcm() 11 return (a / gcd(a, b)) * b; in lcm() 17 unsigned long lcm_not_zero(unsigned long a, unsigned long b) in lcm_not_zero() argument 19 unsigned long l = lcm(a, b); in lcm_not_zero() 24 return (b ? : a); in lcm_not_zero()
|
| A D | int_sqrt.c | 22 unsigned long b, m, y = 0; in int_sqrt() local 29 b = y + m; in int_sqrt() 32 if (x >= b) { in int_sqrt() 33 x -= b; in int_sqrt() 51 u64 b, m, y = 0; in int_sqrt64() local 58 b = y + m; in int_sqrt64() 61 if (x >= b) { in int_sqrt64() 62 x -= b; in int_sqrt64()
|
| /lib/ |
| A D | list_sort.c | 25 *tail = b; in merge() 29 *tail = b; in merge() 31 b = b->next; in merge() 32 if (!b) { in merge() 67 tail = b; in merge_final() 68 b = b->next; in merge_final() 69 if (!b) { in merge_final() 70 b = a; in merge_final() 87 cmp(priv, b, b); in merge_final() 89 tail = b; in merge_final() [all …]
|
| A D | decompress_unxz.c | 204 while (b != e) in memzero() 205 *b++ = '\0'; in memzero() 285 b.out = out; in unxz() 301 b.in = in; in unxz() 302 b.in_pos = 0; in unxz() 304 b.out_pos = 0; in unxz() 310 if (b.in_pos == b.in_size && fill != NULL) { in unxz() 332 if (flush != NULL && (b.out_pos == b.out_size in unxz() 339 if (flush(b.out, b.out_pos) != (long)b.out_pos) in unxz() 350 free(b.out); in unxz() [all …]
|
| A D | sort.c | 61 *(u32 *)(b + n) = t; in swap_words_32() 87 *(u64 *)(b + n) = t; in swap_words_64() 92 *(u32 *)(b + n) = t; in swap_words_64() 96 *(u32 *)(b + n) = t; in swap_words_64() 114 ((char *)b)[n] = t; in swap_bytes() 226 size_t b, c, d; in __sort_r() local 253 for (b = a; c = 2*b + size, (d = c + size) < n;) in __sort_r() 256 b = c; in __sort_r() 259 while (b != a && do_cmp(base + a, base + b, cmp_func, priv) >= 0) in __sort_r() 260 b = parent(b, lsbit, size); in __sort_r() [all …]
|
| A D | siphash.c | 34 v3 ^= b; \ 37 v0 ^= b; \ 71 case 1: b |= end[0]; in __siphash_aligned() 210 b |= first; in siphash_1u32() 224 b |= third; in siphash_3u32() 237 v3 ^= b; \ 239 v0 ^= b; \ 319 b |= first; in hsiphash_1u32() 356 b |= third; in hsiphash_3u32() 399 v3 ^= b; \ [all …]
|
| A D | uuid.c | 53 static void __uuid_gen_common(__u8 b[16]) in __uuid_gen_common() 55 get_random_bytes(b, 16); in __uuid_gen_common() 57 b[8] = (b[8] & 0x3F) | 0x80; in __uuid_gen_common() 62 __uuid_gen_common(lu->b); in guid_gen() 64 lu->b[7] = (lu->b[7] & 0x0F) | 0x40; in guid_gen() 70 __uuid_gen_common(bu->b); in uuid_gen() 72 bu->b[6] = (bu->b[6] & 0x0F) | 0x40; in uuid_gen() 105 static int __uuid_parse(const char *uuid, __u8 b[16], const u8 ei[16]) in __uuid_parse() 117 b[ei[i]] = (hi << 4) | lo; in __uuid_parse() 125 return __uuid_parse(uuid, u->b, guid_index); in guid_parse() [all …]
|
| A D | inflate.c | 375 p = b; i = n; in huft_build() 434 p = b; i = 0; in huft_build() 622 DUMPBITS(t->b) in inflate_codes() 626 DUMPBITS(t->b) in inflate_codes() 658 DUMPBITS(t->b) in inflate_codes() 861 b = bb; in inflate_dynamic() 918 j = (td = tl + ((unsigned)b & m))->b; in inflate_dynamic() 971 bb = b; in inflate_dynamic() 1046 b = bb; in inflate_block() 1052 *e = (int)b & 1; in inflate_block() [all …]
|
| /lib/xz/ |
| A D | xz_dec_stream.c | 300 ret = dec_vli(s, b->in, &b->in_pos, b->in_size); in dec_index() 348 if (b->in_pos == b->in_size) in crc32_validate() 372 if (b->in_pos == b->in_size) in check_skip() 589 if (b->in_pos == b->in_size) in dec_main() 593 if (b->in[b->in_pos] == 0) { in dec_main() 604 = ((uint32_t)b->in[b->in_pos] + 1) * 4; in dec_main() 642 if (b->in_pos == b->in_size) in dec_main() 645 if (b->in[b->in_pos++] != 0) in dec_main() 682 if (b->in_pos == b->in_size) { in dec_main() 687 if (b->in[b->in_pos++] != 0) in dec_main() [all …]
|
| A D | xz_dec_lzma2.c | 292 dict->buf = b->out + b->out_pos; in dict_reset() 383 && b->out_pos < b->out_size) { in dict_uncompressed() 385 b->out_size - b->out_pos); in dict_uncompressed() 414 memmove(b->out + b->out_pos, b->in + b->in_pos, in dict_uncompressed() 483 if (b->in_pos == b->in_size) in rc_read_init() 1001 tmp = b->in[b->in_pos++]; in xz_dec_lzma2_run() 1102 b->out_size - b->out_pos, in xz_dec_lzma2_run() 1118 || (b->in_pos == b->in_size in xz_dec_lzma2_run() 1225 if (b->in_pos >= b->in_size) in xz_dec_microlzma_run() 1281 if (b->out_pos == b->out_size) in xz_dec_microlzma_run() [all …]
|
| A D | xz_dec_bcj.c | 86 return b == 0x00 || b == 0xFF; in bcj_x86_test_msbyte() 102 uint8_t b; in bcj_x86() local 562 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush() 586 bcj_flush(s, b); in xz_dec_bcj_run() 608 memcpy(b->out + b->out_pos, s->temp.buf, s->temp.size); in xz_dec_bcj_run() 616 bcj_apply(s, b->out, &out_start, b->out_pos); in xz_dec_bcj_run() 628 memcpy(s->temp.buf, b->out + b->out_pos, s->temp.size); in xz_dec_bcj_run() 635 if (b->out_pos + s->temp.size < b->out_size) in xz_dec_bcj_run() 647 if (b->out_pos < b->out_size) { in xz_dec_bcj_run() 649 s->out = b->out; in xz_dec_bcj_run() [all …]
|
| /lib/842/ |
| A D | 842_compress.c | 110 be##b##_to_cpu(get_unaligned((__be##b *)((p)->in + (o)))) 125 hash_for_each_possible(p->htable##b, _n, node, p->data##b[n]) { \ 140 struct sw842_hlist_node##b *_n = &(p)->node##b[(i)+(d)]; \ 169 int b = p->bit, bits = b + n, s = round_up(bits, 8) - bits; in add_bits() local 191 o = *out & bmask[b]; in add_bits() 224 int ret, i, b = 0; in add_template() local 242 if (b) in add_template() 254 else if (b != 0 && b != 4) in add_template() 264 if (b != 0 && b != 2 && b != 4 && b != 6) in add_template() 293 if (b != 8) { in add_template() [all …]
|
| /lib/tests/ |
| A D | list-test.c | 49 struct list_head a, b; in list_test_list_add() local 53 list_add(&b, &list); in list_test_list_add() 63 struct list_head a, b; in list_test_list_add_tail() local 77 struct list_head a, b; in list_test_list_del() local 132 struct list_head a, b; in list_test_list_swap() local 139 list_swap(&a, &b); in list_test_list_swap() 154 struct list_head a, b; in list_test_list_del_init() local 174 struct list_head a, b; in list_test_list_del_init_careful() local 191 struct list_head a, b; in list_test_list_move() local 210 struct list_head a, b; in list_test_list_move_tail() local [all …]
|
| A D | hashtable_test.c | 57 b.key = 1; in hashtable_test_hash_hashed() 58 b.data = 2; in hashtable_test_hash_hashed() 59 hash_add(hash, &b.node, b.key); in hashtable_test_hash_hashed() 75 b.key = 2; in hashtable_test_hash_add() 76 b.data = 10; in hashtable_test_hash_add() 77 b.visited = 0; in hashtable_test_hash_add() 78 hash_add(hash, &b.node, b.key); in hashtable_test_hash_add() 103 b.key = 2; in hashtable_test_hash_del() 104 b.data = 10; in hashtable_test_hash_del() 105 b.visited = 0; in hashtable_test_hash_del() [all …]
|
| /lib/crypto/mpi/ |
| A D | mpiutil.c | 134 MPI b; in mpi_copy() local 137 b = mpi_alloc(a->nlimbs); in mpi_copy() 138 if (!b) in mpi_copy() 140 b->nlimbs = a->nlimbs; in mpi_copy() 141 b->sign = a->sign; in mpi_copy() 142 b->flags = a->flags; in mpi_copy() 143 b->flags &= ~(16|32); /* Reset the immutable and constant flags. */ in mpi_copy() 144 for (i = 0; i < b->nlimbs; i++) in mpi_copy() 145 b->d[i] = a->d[i]; in mpi_copy() 147 b = NULL; in mpi_copy() [all …]
|
| /lib/reed_solomon/ |
| A D | decode_rs.c | 126 b[i] = index_of[lambda[i]]; 148 memmove (&b[1], b, nroots * sizeof (b[0])); 149 b[0] = nn; 154 if (b[i] != nn) { 157 b[i])]; 174 memmove(&b[1], b, nroots * sizeof(b[0])); 175 b[0] = nn; 263 b[j] = 0; 292 if (b[j] == 0) 310 if (b[i]) { [all …]
|