Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 66) sorted by relevance

123

/lib/crypto/
A Dsm3.c46 h += GG ## i(e, f, g) + ss1 + (w1); \
49 h = P0((h)); \
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
86 h = sctx->state[7]; 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()
[all …]
A Dsha256.c22 .h = {
29 .h = {
106 a = state->h[0]; in sha256_block_generic()
107 b = state->h[1]; in sha256_block_generic()
108 c = state->h[2]; in sha256_block_generic()
109 d = state->h[3]; in sha256_block_generic()
110 e = state->h[4]; in sha256_block_generic()
111 f = state->h[5]; in sha256_block_generic()
112 g = state->h[6]; in sha256_block_generic()
113 h = state->h[7]; in sha256_block_generic()
[all …]
A Dsha512.c22 .h = {
29 .h = {
82 u64 h = state->h[7]; in sha512_block_generic() local
100 t2 = e0(h) + Maj(h, a, b); c += t1; g = t1 + t2; in sha512_block_generic()
107 t1 = c + e1(h) + Ch(h, a, b) + sha512_K[i+5] + W[(i & 15) + 5]; in sha512_block_generic()
115 state->h[0] += a; in sha512_block_generic()
116 state->h[1] += b; in sha512_block_generic()
117 state->h[2] += c; in sha512_block_generic()
118 state->h[3] += d; in sha512_block_generic()
119 state->h[4] += e; in sha512_block_generic()
[all …]
A Dcurve25519-fiat32.c166 u32 h[10]; in fe_tobytes() local
168 s[0] = h[0] >> 0; in fe_tobytes()
171 s[3] = (h[0] >> 24) | (h[1] << 2); in fe_tobytes()
174 s[6] = (h[1] >> 22) | (h[2] << 3); in fe_tobytes()
177 s[9] = (h[2] >> 21) | (h[3] << 5); in fe_tobytes()
180 s[12] = (h[3] >> 19) | (h[4] << 6); in fe_tobytes()
187 s[19] = (h[5] >> 24) | (h[6] << 1); in fe_tobytes()
190 s[22] = (h[6] >> 23) | (h[7] << 3); in fe_tobytes()
193 s[25] = (h[7] >> 21) | (h[8] << 4); in fe_tobytes()
196 s[28] = (h[8] >> 20) | (h[9] << 6); in fe_tobytes()
[all …]
A Dpoly1305-donna32.c59 h0 = state->h[0]; in poly1305_core_blocks()
60 h1 = state->h[1]; in poly1305_core_blocks()
61 h2 = state->h[2]; in poly1305_core_blocks()
62 h3 = state->h[3]; in poly1305_core_blocks()
63 h4 = state->h[4]; in poly1305_core_blocks()
113 state->h[0] = h0; in poly1305_core_blocks()
114 state->h[1] = h1; in poly1305_core_blocks()
115 state->h[2] = h2; in poly1305_core_blocks()
116 state->h[3] = h3; in poly1305_core_blocks()
117 state->h[4] = h4; in poly1305_core_blocks()
[all …]
A Dblake2s.c56 cpu_to_le32_array(state->h, ARRAY_SIZE(state->h)); in blake2s_final()
57 memcpy(out, state->h, state->outlen); in blake2s_final()
/lib/crypto/mips/
A Dsha512.h33 write_octeon_64bit_hash_sha512(state->h[0], 0); in sha512_blocks()
34 write_octeon_64bit_hash_sha512(state->h[1], 1); in sha512_blocks()
35 write_octeon_64bit_hash_sha512(state->h[2], 2); in sha512_blocks()
36 write_octeon_64bit_hash_sha512(state->h[3], 3); in sha512_blocks()
37 write_octeon_64bit_hash_sha512(state->h[4], 4); in sha512_blocks()
38 write_octeon_64bit_hash_sha512(state->h[5], 5); in sha512_blocks()
39 write_octeon_64bit_hash_sha512(state->h[6], 6); in sha512_blocks()
40 write_octeon_64bit_hash_sha512(state->h[7], 7); in sha512_blocks()
65 state->h[0] = read_octeon_64bit_hash_sha512(0); in sha512_blocks()
66 state->h[1] = read_octeon_64bit_hash_sha512(1); in sha512_blocks()
[all …]
A Dsha1.h25 u64 *hash = (u64 *)&state->h[0]; in octeon_sha1_store_hash()
29 } hash_tail = { { state->h[4], } }; in octeon_sha1_store_hash()
39 u64 *hash = (u64 *)&state->h[0]; in octeon_sha1_read_hash()
48 state->h[4] = hash_tail.word[0]; in octeon_sha1_read_hash()
/lib/crypto/x86/
A Dpoly1305_glue.c18 u32 h[5]; member
46 cy = state->h[0] >> 26; state->h[0] &= 0x3ffffff; state->h[1] += cy; in convert_to_base2_64()
47 cy = state->h[1] >> 26; state->h[1] &= 0x3ffffff; state->h[2] += cy; in convert_to_base2_64()
48 cy = state->h[2] >> 26; state->h[2] &= 0x3ffffff; state->h[3] += cy; in convert_to_base2_64()
49 cy = state->h[3] >> 26; state->h[3] &= 0x3ffffff; state->h[4] += cy; in convert_to_base2_64()
50 state->hs[0] = ((u64)state->h[2] << 52) | ((u64)state->h[1] << 26) | state->h[0]; in convert_to_base2_64()
51 state->hs[1] = ((u64)state->h[4] << 40) | ((u64)state->h[3] << 14) | (state->h[2] >> 12); in convert_to_base2_64()
52 state->hs[2] = state->h[4] >> 24; in convert_to_base2_64()
95 container_of(&state->h.h, struct poly1305_arch_internal, h); in poly1305_blocks_arch()
A Dsha256-avx2-asm.S160 addl \disp(%rsp, SRND), h # h = k + w + h # --
190 add y1, h # h = k + w + h + S0 # --
196 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
208 addl offset(%rsp, SRND), h # h = k + w + h # --
242 add y1, h # h = k + w + h + S0 # --
294 add y1,h # h = k + w + h + S0 # --
296 add y2,h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
375 addl \disp(%rsp, SRND), h # h = k + w + h # --
414 addl offset(%rsp, SRND), h # h = k + w + h # --
454 addl offset(%rsp, SRND), h # h = k + w + h # --
[all …]
A Dsha512-avx2-asm.S184 add frame_XFER(%rsp),h # h = k + w + h # --
209 add y1, h # h = k + w + h + S0 # --
213 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
246 add 1*8+frame_XFER(%rsp), h # h = k + w + h # --
274 add y1, h # h = k + w + h + S0 # --
277 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
331 add y1, h # h = k + w + h + S0 # --
333 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
392 add y1, h # h = k + w + h + S0 # --
393 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
[all …]
A Dsha256-avx-asm.S180 add y2, h # h = h + S1 + CH + k + w
188 add y1, h # h = h + S1 + CH + k + w + S0
191 add y0, h # h = h + S1 + CH + k + w + S0 + MAJ
217 add y2, h # h = h + S1 + CH + k + w
226 add y1, h # h = h + S1 + CH + k + w + S0
229 add y0, h # h = h + S1 + CH + k + w + S0 + MAJ
255 add y2, h # h = h + S1 + CH + k + w
263 add y1, h # h = h + S1 + CH + k + w + S0
293 add y2, h # h = h + S1 + CH + k + w
301 add y1, h # h = h + S1 + CH + k + w + S0
[all …]
A Dsha256-ssse3-asm.S177 add y2, h # h = h + S1 + CH + k + w
185 add y1, h # h = h + S1 + CH + k + w + S0
217 add y2, h # h = h + S1 + CH + k + w
226 add y1, h # h = h + S1 + CH + k + w + S0
258 add y2, h # h = h + S1 + CH + k + w
266 add y1, h # h = h + S1 + CH + k + w + S0
299 add y2, h # h = h + S1 + CH + k + w
307 add y1, h # h = h + S1 + CH + k + w + S0
337 add y2, h # h = h + S1 + CH + k + w
343 add y1, h # h = h + S1 + CH + k + w + S0
[all …]
/lib/crypto/powerpc/
A Dsha256-spe-asm.S112 add h,h,rT0; /* 1: temp1 = h + S1 */ \
115 add h,h,rT3; /* 1: temp1 = temp1 + temp1' */ \
117 add h,h,rT2; /* 1: temp1 = temp1 + K */ \
120 add d,d,h; /* 1: d = d + temp1 */ \
131 add h,h,rT3; /* 1: h = temp1 + temp2 */ \
147 or rT2,h,a; /* 2: maj = a or b */ \
167 add h,h,rT2; /* 1: temp1 = h + S1 */ \
175 add h,h,rT2; /* 1: temp1 = temp1 + ch */ \
195 add h,h,rT0; /* 1: temp1 = temp1 + wk */ \
200 add h,h,rT2; /* 1: h = temp1 + temp2 */ \
[all …]
/lib/crypto/arm64/
A Dsha2-armv8.pl141 add $h,$h,$t2 // h+=K[i]
145 add $h,$h,@X[$i&15] // h+=X[i]
150 add $h,$h,$t1 // h+=Ch(e,f,g)
152 add $h,$h,$t0 // h+=Sigma1(e)
157 add $h,$h,$t3 // h+=Maj(a,b,c)
163 add $h,$h,$t2 // h+=K[i]
169 add $h,$h,@X[$i&15] // h+=X[i]
176 add $h,$h,$t1 // h+=Ch(e,f,g)
180 add $h,$h,$t0 // h+=Sigma1(e)
186 add $h,$h,$t3 // h+=Maj(a,b,c)
[all …]
/lib/zstd/compress/
A Dzstd_compress_internal.h891 …tatic U32 ZSTD_hash3(U32 u, U32 h, U32 s) { assert(h <= 32); return (((u << (32-24)) * prime3by… in ZSTD_hash3() argument
896 static U32 ZSTD_hash4(U32 u, U32 h, U32 s) { assert(h <= 32); return ((u * prime4bytes) ^ s) >> … in ZSTD_hash4() argument
897 static size_t ZSTD_hash4Ptr(const void* ptr, U32 h) { return ZSTD_hash4(MEM_readLE32(ptr), h, 0); } in ZSTD_hash4Ptr() argument
901 …c size_t ZSTD_hash5(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-40)) * pr… in ZSTD_hash5() argument
902 static size_t ZSTD_hash5Ptr(const void* p, U32 h) { return ZSTD_hash5(MEM_readLE64(p), h, 0); } in ZSTD_hash5Ptr() argument
906 …c size_t ZSTD_hash6(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-48)) * pr… in ZSTD_hash6() argument
907 static size_t ZSTD_hash6Ptr(const void* p, U32 h) { return ZSTD_hash6(MEM_readLE64(p), h, 0); } in ZSTD_hash6Ptr() argument
911 …c size_t ZSTD_hash7(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-56)) * pr… in ZSTD_hash7() argument
912 static size_t ZSTD_hash7Ptr(const void* p, U32 h) { return ZSTD_hash7(MEM_readLE64(p), h, 0); } in ZSTD_hash7Ptr() argument
916 static size_t ZSTD_hash8(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u) * prime8byte… in ZSTD_hash8() argument
[all …]
/lib/crc/
A DKconfig9 the functions from <linux/crc4.h>.
15 the functions from <linux/crc7.h>.
21 the functions from <linux/crc8.h>.
27 the functions from <linux/crc16.h>.
33 of the functions from <linux/crc-ccitt.h>.
39 any of the functions from <linux/crc-itu-t.h>.
45 any of the functions from <linux/crc-t10dif.h>.
61 the functions from <linux/crc32.h> or <linux/crc32c.h>.
80 the functions from <linux/crc64.h>.
A DMakefile48 clean-files := crc32table.h crc64table.h
50 $(obj)/crc32-main.o: $(obj)/crc32table.h
51 $(obj)/crc64-main.o: $(obj)/crc64table.h
59 $(obj)/crc32table.h: $(obj)/gen_crc32table
62 $(obj)/crc64table.h: $(obj)/gen_crc64table
A D.gitignore2 /crc32table.h
3 /crc64table.h
/lib/crypto/arm/
A Dsha256-armv4.pl72 my ($i,$a,$b,$c,$d,$e,$f,$g,$h) = @_;
104 add $h,$h,$t1 @ h+=X[i]
107 add $h,$h,$t0,ror#$Sigma1[0] @ h+=Sigma1(e)
109 add $h,$h,$t2 @ h+=K256[i]
112 add $h,$h,$t1 @ h+=Ch(e,f,g)
131 add $d,$d,$h @ d+=h
133 add $h,$h,$t0,ror#$Sigma0[0] @ h+=Sigma0(a)
134 @ add $h,$h,$t3 @ h+=Maj(a,b,c)
140 my ($i,$a,$b,$c,$d,$e,$f,$g,$h) = @_;
310 my ($a,$b,$c,$d,$e,$f,$g,$h);
[all …]
/lib/lz4/
A Dlz4_compress.c92 U32 h, in LZ4_putPositionOnHash() argument
102 hashTable[h] = p; in LZ4_putPositionOnHash()
109 hashTable[h] = (U32)(p - srcBase); in LZ4_putPositionOnHash()
116 hashTable[h] = (U16)(p - srcBase); in LZ4_putPositionOnHash()
134 U32 h, in LZ4_getPositionOnHash() argument
142 return hashTable[h]; in LZ4_getPositionOnHash()
148 return hashTable[h] + srcBase; in LZ4_getPositionOnHash()
155 return hashTable[h] + srcBase; in LZ4_getPositionOnHash()
255 U32 const h = forwardH; in LZ4_compress_generic() local
578 U32 h = forwardH; in LZ4_compress_destSize_generic() local
[all …]
/lib/
A Dinflate.c340 int h; /* table level */ in huft_build() local
466 h++; in huft_build()
491 if (h) in huft_build()
504 if (h) in huft_build()
511 u[h-1][j] = r; /* connect to last table */ in huft_build()
545 while ((i & ((1 << w) - 1)) != x[h]) in huft_build()
547 h--; /* don't need to update q */ in huft_build()
1099 h = 0; in inflate()
1108 if (hufts > h) in inflate()
1109 h = hufts; in inflate()
[all …]
A D.gitignore2 /crc32table.h
3 /crc64table.h
/lib/raid6/
A Dvpermxor.uc23 #include <linux/raid/pq.h>
26 #include <altivec.h>
27 #include <asm/ppc-opcode.h>
29 #include <asm/cputable.h>
30 #include <asm/switch_to.h>
/lib/crc/arm64/
A Dcrc-t10dif-core.S160 pmull t3.8h, t7.8b, t5.8b
161 pmull t4.8h, t7.8b, t6.8b
162 pmull2 t5.8h, t7.16b, t5.16b
163 pmull2 t6.8h, t7.16b, t6.16b
242 mov v8.h[7], init_crc
352 mov v0.h[7], init_crc
377 movi perm.4h, #8, lsl #8
434 umov w0, v0.h[0]

Completed in 65 milliseconds

123