mirror of
https://github.com/hashcat/hashcat.git
synced 2025-03-28 05:15:42 +00:00
Merge pull request #2406 from philsmd/patch-1
-m 21000 = BitShares fix for different vector width
This commit is contained in:
commit
8ed1ae63db
@ -66,22 +66,22 @@ KERNEL_FQ void m21000_mxx (KERN_ATTR_VECTOR ())
|
|||||||
|
|
||||||
u32x final[32] = { 0 };
|
u32x final[32] = { 0 };
|
||||||
|
|
||||||
final[ 0] = h32_from_64_S (ctx0.h[0]);
|
final[ 0] = h32_from_64 (ctx0.h[0]);
|
||||||
final[ 1] = l32_from_64_S (ctx0.h[0]);
|
final[ 1] = l32_from_64 (ctx0.h[0]);
|
||||||
final[ 2] = h32_from_64_S (ctx0.h[1]);
|
final[ 2] = h32_from_64 (ctx0.h[1]);
|
||||||
final[ 3] = l32_from_64_S (ctx0.h[1]);
|
final[ 3] = l32_from_64 (ctx0.h[1]);
|
||||||
final[ 4] = h32_from_64_S (ctx0.h[2]);
|
final[ 4] = h32_from_64 (ctx0.h[2]);
|
||||||
final[ 5] = l32_from_64_S (ctx0.h[2]);
|
final[ 5] = l32_from_64 (ctx0.h[2]);
|
||||||
final[ 6] = h32_from_64_S (ctx0.h[3]);
|
final[ 6] = h32_from_64 (ctx0.h[3]);
|
||||||
final[ 7] = l32_from_64_S (ctx0.h[3]);
|
final[ 7] = l32_from_64 (ctx0.h[3]);
|
||||||
final[ 8] = h32_from_64_S (ctx0.h[4]);
|
final[ 8] = h32_from_64 (ctx0.h[4]);
|
||||||
final[ 9] = l32_from_64_S (ctx0.h[4]);
|
final[ 9] = l32_from_64 (ctx0.h[4]);
|
||||||
final[10] = h32_from_64_S (ctx0.h[5]);
|
final[10] = h32_from_64 (ctx0.h[5]);
|
||||||
final[11] = l32_from_64_S (ctx0.h[5]);
|
final[11] = l32_from_64 (ctx0.h[5]);
|
||||||
final[12] = h32_from_64_S (ctx0.h[6]);
|
final[12] = h32_from_64 (ctx0.h[6]);
|
||||||
final[13] = l32_from_64_S (ctx0.h[6]);
|
final[13] = l32_from_64 (ctx0.h[6]);
|
||||||
final[14] = h32_from_64_S (ctx0.h[7]);
|
final[14] = h32_from_64 (ctx0.h[7]);
|
||||||
final[15] = l32_from_64_S (ctx0.h[7]);
|
final[15] = l32_from_64 (ctx0.h[7]);
|
||||||
|
|
||||||
sha512_update_vector (&ctx, final, 64);
|
sha512_update_vector (&ctx, final, 64);
|
||||||
|
|
||||||
@ -160,22 +160,22 @@ KERNEL_FQ void m21000_sxx (KERN_ATTR_VECTOR ())
|
|||||||
|
|
||||||
u32x final[32] = { 0 };
|
u32x final[32] = { 0 };
|
||||||
|
|
||||||
final[ 0] = h32_from_64_S (ctx0.h[0]);
|
final[ 0] = h32_from_64 (ctx0.h[0]);
|
||||||
final[ 1] = l32_from_64_S (ctx0.h[0]);
|
final[ 1] = l32_from_64 (ctx0.h[0]);
|
||||||
final[ 2] = h32_from_64_S (ctx0.h[1]);
|
final[ 2] = h32_from_64 (ctx0.h[1]);
|
||||||
final[ 3] = l32_from_64_S (ctx0.h[1]);
|
final[ 3] = l32_from_64 (ctx0.h[1]);
|
||||||
final[ 4] = h32_from_64_S (ctx0.h[2]);
|
final[ 4] = h32_from_64 (ctx0.h[2]);
|
||||||
final[ 5] = l32_from_64_S (ctx0.h[2]);
|
final[ 5] = l32_from_64 (ctx0.h[2]);
|
||||||
final[ 6] = h32_from_64_S (ctx0.h[3]);
|
final[ 6] = h32_from_64 (ctx0.h[3]);
|
||||||
final[ 7] = l32_from_64_S (ctx0.h[3]);
|
final[ 7] = l32_from_64 (ctx0.h[3]);
|
||||||
final[ 8] = h32_from_64_S (ctx0.h[4]);
|
final[ 8] = h32_from_64 (ctx0.h[4]);
|
||||||
final[ 9] = l32_from_64_S (ctx0.h[4]);
|
final[ 9] = l32_from_64 (ctx0.h[4]);
|
||||||
final[10] = h32_from_64_S (ctx0.h[5]);
|
final[10] = h32_from_64 (ctx0.h[5]);
|
||||||
final[11] = l32_from_64_S (ctx0.h[5]);
|
final[11] = l32_from_64 (ctx0.h[5]);
|
||||||
final[12] = h32_from_64_S (ctx0.h[6]);
|
final[12] = h32_from_64 (ctx0.h[6]);
|
||||||
final[13] = l32_from_64_S (ctx0.h[6]);
|
final[13] = l32_from_64 (ctx0.h[6]);
|
||||||
final[14] = h32_from_64_S (ctx0.h[7]);
|
final[14] = h32_from_64 (ctx0.h[7]);
|
||||||
final[15] = l32_from_64_S (ctx0.h[7]);
|
final[15] = l32_from_64 (ctx0.h[7]);
|
||||||
|
|
||||||
sha512_update_vector (&ctx, final, 64);
|
sha512_update_vector (&ctx, final, 64);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user