/openbmc/qemu/tests/tcg/multiarch/ |
H A D | sha512.c | 256 static uint64_t sigma1(uint64_t x) in sigma1() function 293 Round(a, b, c, &d, e, f, g, &h, 0xe49b69c19ef14ad2ull, w0 += sigma1(w14) + w9 + sigma0(w1)); in Transform() 294 Round(h, a, b, &c, d, e, f, &g, 0xefbe4786384f25e3ull, w1 += sigma1(w15) + w10 + sigma0(w2)); in Transform() 295 Round(g, h, a, &b, c, d, e, &f, 0x0fc19dc68b8cd5b5ull, w2 += sigma1(w0) + w11 + sigma0(w3)); in Transform() 296 Round(f, g, h, &a, b, c, d, &e, 0x240ca1cc77ac9c65ull, w3 += sigma1(w1) + w12 + sigma0(w4)); in Transform() 297 Round(e, f, g, &h, a, b, c, &d, 0x2de92c6f592b0275ull, w4 += sigma1(w2) + w13 + sigma0(w5)); in Transform() 298 Round(d, e, f, &g, h, a, b, &c, 0x4a7484aa6ea6e483ull, w5 += sigma1(w3) + w14 + sigma0(w6)); in Transform() 299 Round(c, d, e, &f, g, h, a, &b, 0x5cb0a9dcbd41fbd4ull, w6 += sigma1(w4) + w15 + sigma0(w7)); in Transform() 300 Round(b, c, d, &e, f, g, h, &a, 0x76f988da831153b5ull, w7 += sigma1(w5) + w0 + sigma0(w8)); in Transform() 301 Round(a, b, c, &d, e, f, g, &h, 0x983e5152ee66dfabull, w8 += sigma1(w6) + w1 + sigma0(w9)); in Transform() [all …]
|
/openbmc/linux/arch/arm/crypto/ |
H A D | sha256-armv4.pl | 69 @sigma1=(17,19,10); 147 mov $t2,$t4,ror#$sigma1[0] 149 eor $t2,$t2,$t4,ror#$sigma1[1] 152 eor $t2,$t2,$t4,lsr#$sigma1[2] @ sigma1(X[i+14]) 341 &vshr_u32 ($T4,&Dhi(@X[3]),$sigma1[0]); 347 &vsli_32 ($T4,&Dhi(@X[3]),32-$sigma1[0]); 350 &vshr_u32 ($T5,&Dhi(@X[3]),$sigma1[2]); 359 &vshr_u32 ($T4,&Dhi(@X[3]),$sigma1[1]); 362 &vsli_32 ($T4,&Dhi(@X[3]),32-$sigma1[1]); 371 &vshr_u32 ($T4,&Dlo(@X[0]),$sigma1[0]); [all …]
|
H A D | sha512-armv4.pl | 496 my @sigma1=(19,61,6); 564 vshr.u64 $t0,@X[($i+7)%8],#@sigma1[0] 565 vshr.u64 $t1,@X[($i+7)%8],#@sigma1[1] 567 vshr.u64 $s1,@X[($i+7)%8],#@sigma1[2] 568 vsli.64 $t0,@X[($i+7)%8],#`64-@sigma1[0]` 570 vsli.64 $t1,@X[($i+7)%8],#`64-@sigma1[1]`
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | sha512-armv8.pl | 84 @sigma1=(19,61, 6); 93 @sigma1=(17,19,10); 166 ror $T2,@X[($j+14)&15],#$sigma1[0] 178 eor $T2,$T2,@X[($j+14)&15],ror#$sigma1[1] 183 eor $T2,$T2,@X[($j+14)&15],lsr#$sigma1[2] // sigma1(X[i+14]) 511 &ushr_32 ($T4,$T7,$sigma1[0]); 517 &sli_32 ($T4,$T7,32-$sigma1[0]); 520 &ushr_32 ($T5,$T7,$sigma1[2]); 523 &ushr_32 ($T3,$T7,$sigma1[1]); 529 &sli_u32 ($T3,$T7,32-$sigma1[1]); [all …]
|
/openbmc/u-boot/fs/zfs/ |
H A D | zfs_sha256.c | 55 #define sigma1(x) (Rot32(x, 17) ^ Rot32(x, 19) ^ ((x) >> 10)) macro 85 W[t] = sigma1(W[t - 2]) + W[t - 7] + in SHA256Transform()
|
/openbmc/qemu/target/s390x/tcg/ |
H A D | crypto_helper.c | 47 static uint64_t sigma1(uint64_t x) in sigma1() function 101 sigma1(w[(j + 14) % 16]); in sha512_bda()
|
/openbmc/linux/arch/x86/crypto/ |
H A D | sha512-avx2-asm.S | 239 # Calculate sigma1 for w[16] and w[17] on both 128 bit lanes 296 # Add sigma1 to the other compunents to get w[16] and w[17] 299 # Calculate sigma1 for w[18] and w[19] for upper 128 bit lane 353 # to newly calculated sigma1 to get w[18] and w[19]
|