1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

-m 21000 = BitShares fix for different vector width

This commit is contained in:
philsmd 2020-05-18 10:37:58 +02:00 committed by GitHub
parent 109fa01a54
commit 5190441dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,22 +66,22 @@ KERNEL_FQ void m21000_mxx (KERN_ATTR_VECTOR ())
u32x final[32] = { 0 };
final[ 0] = h32_from_64_S (ctx0.h[0]);
final[ 1] = l32_from_64_S (ctx0.h[0]);
final[ 2] = h32_from_64_S (ctx0.h[1]);
final[ 3] = l32_from_64_S (ctx0.h[1]);
final[ 4] = h32_from_64_S (ctx0.h[2]);
final[ 5] = l32_from_64_S (ctx0.h[2]);
final[ 6] = h32_from_64_S (ctx0.h[3]);
final[ 7] = l32_from_64_S (ctx0.h[3]);
final[ 8] = h32_from_64_S (ctx0.h[4]);
final[ 9] = l32_from_64_S (ctx0.h[4]);
final[10] = h32_from_64_S (ctx0.h[5]);
final[11] = l32_from_64_S (ctx0.h[5]);
final[12] = h32_from_64_S (ctx0.h[6]);
final[13] = l32_from_64_S (ctx0.h[6]);
final[14] = h32_from_64_S (ctx0.h[7]);
final[15] = l32_from_64_S (ctx0.h[7]);
final[ 0] = h32_from_64 (ctx0.h[0]);
final[ 1] = l32_from_64 (ctx0.h[0]);
final[ 2] = h32_from_64 (ctx0.h[1]);
final[ 3] = l32_from_64 (ctx0.h[1]);
final[ 4] = h32_from_64 (ctx0.h[2]);
final[ 5] = l32_from_64 (ctx0.h[2]);
final[ 6] = h32_from_64 (ctx0.h[3]);
final[ 7] = l32_from_64 (ctx0.h[3]);
final[ 8] = h32_from_64 (ctx0.h[4]);
final[ 9] = l32_from_64 (ctx0.h[4]);
final[10] = h32_from_64 (ctx0.h[5]);
final[11] = l32_from_64 (ctx0.h[5]);
final[12] = h32_from_64 (ctx0.h[6]);
final[13] = l32_from_64 (ctx0.h[6]);
final[14] = h32_from_64 (ctx0.h[7]);
final[15] = l32_from_64 (ctx0.h[7]);
sha512_update_vector (&ctx, final, 64);
@ -160,22 +160,22 @@ KERNEL_FQ void m21000_sxx (KERN_ATTR_VECTOR ())
u32x final[32] = { 0 };
final[ 0] = h32_from_64_S (ctx0.h[0]);
final[ 1] = l32_from_64_S (ctx0.h[0]);
final[ 2] = h32_from_64_S (ctx0.h[1]);
final[ 3] = l32_from_64_S (ctx0.h[1]);
final[ 4] = h32_from_64_S (ctx0.h[2]);
final[ 5] = l32_from_64_S (ctx0.h[2]);
final[ 6] = h32_from_64_S (ctx0.h[3]);
final[ 7] = l32_from_64_S (ctx0.h[3]);
final[ 8] = h32_from_64_S (ctx0.h[4]);
final[ 9] = l32_from_64_S (ctx0.h[4]);
final[10] = h32_from_64_S (ctx0.h[5]);
final[11] = l32_from_64_S (ctx0.h[5]);
final[12] = h32_from_64_S (ctx0.h[6]);
final[13] = l32_from_64_S (ctx0.h[6]);
final[14] = h32_from_64_S (ctx0.h[7]);
final[15] = l32_from_64_S (ctx0.h[7]);
final[ 0] = h32_from_64 (ctx0.h[0]);
final[ 1] = l32_from_64 (ctx0.h[0]);
final[ 2] = h32_from_64 (ctx0.h[1]);
final[ 3] = l32_from_64 (ctx0.h[1]);
final[ 4] = h32_from_64 (ctx0.h[2]);
final[ 5] = l32_from_64 (ctx0.h[2]);
final[ 6] = h32_from_64 (ctx0.h[3]);
final[ 7] = l32_from_64 (ctx0.h[3]);
final[ 8] = h32_from_64 (ctx0.h[4]);
final[ 9] = l32_from_64 (ctx0.h[4]);
final[10] = h32_from_64 (ctx0.h[5]);
final[11] = l32_from_64 (ctx0.h[5]);
final[12] = h32_from_64 (ctx0.h[6]);
final[13] = l32_from_64 (ctx0.h[6]);
final[14] = h32_from_64 (ctx0.h[7]);
final[15] = l32_from_64 (ctx0.h[7]);
sha512_update_vector (&ctx, final, 64);