mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 16:18:09 +00:00
Add code generators for switch_buffer_by_offset_8x4_be_S()
This commit is contained in:
parent
6feb0a1630
commit
94103ec3d2
@ -0,0 +1,37 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
for (my $i = 0, my $s = 0; $i < 32; $i++, $s++)
|
||||
{
|
||||
printf (" case %2d:\n", $i);
|
||||
for (my $j = 32 - 1; $j >= 0; $j--)
|
||||
{
|
||||
my $jd4 = $j / 4;
|
||||
my $jm4 = $j % 4;
|
||||
|
||||
my $js1d4 = ($j - $s - 1) / 4;
|
||||
my $js1m4 = ($j - $s - 1) % 4;
|
||||
|
||||
my $js0d4 = ($j - $s - 0) / 4;
|
||||
my $js0m4 = ($j - $s - 0) % 4;
|
||||
|
||||
if ((($j - $s - 1) >= 0) && (($j - $s - 0) >= 0))
|
||||
{
|
||||
printf (" w%d[%d] = amd_bytealign_S (w%d[%d], w%d[%d], offset);\n", $jd4, $jm4, $js1d4, $js1m4, $js0d4, $js0m4);
|
||||
}
|
||||
elsif (($j - $s - 0) >= 0)
|
||||
{
|
||||
printf (" w%d[%d] = amd_bytealign_S ( 0, w%d[%d], offset);\n", $jd4, $jm4, $js0d4, $js0m4);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf (" w%d[%d] = 0;\n", $jd4, $jm4);
|
||||
}
|
||||
}
|
||||
printf ("\n");
|
||||
|
||||
printf (" break;\n");
|
||||
printf ("\n");
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
for (my $i = 0, my $s = 0; $i < 32; $i++, $s++)
|
||||
{
|
||||
printf (" case %2d:\n", $i);
|
||||
for (my $j = 32 - 1; $j >= 0; $j--)
|
||||
{
|
||||
my $jd4 = $j / 4;
|
||||
my $jm4 = $j % 4;
|
||||
|
||||
my $js1d4 = ($j - $s - 1) / 4;
|
||||
my $js1m4 = ($j - $s - 1) % 4;
|
||||
|
||||
my $js0d4 = ($j - $s - 0) / 4;
|
||||
my $js0m4 = ($j - $s - 0) % 4;
|
||||
|
||||
if ((($j - $s - 1) >= 0) && (($j - $s - 0) >= 0))
|
||||
{
|
||||
printf (" w%d[%d] = __byte_perm_S (w%d[%d], w%d[%d], selector);\n", $jd4, $jm4, $js0d4, $js0m4, $js1d4, $js1m4);
|
||||
}
|
||||
elsif (($j - $s - 0) >= 0)
|
||||
{
|
||||
printf (" w%d[%d] = __byte_perm_S (w%d[%d], 0, selector);\n", $jd4, $jm4, $js0d4, $js0m4);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf (" w%d[%d] = 0;\n", $jd4, $jm4, );
|
||||
}
|
||||
}
|
||||
printf ("\n");
|
||||
|
||||
printf (" break;\n");
|
||||
printf ("\n");
|
||||
}
|
Loading…
Reference in New Issue
Block a user