Skip to content

Commit

Permalink
crypto/sha/asm/sha512-ia64.pl: When checking assembler file names, ig…
Browse files Browse the repository at this point in the history
…nore case

The use case is that uppercase .ASM extension may be used on some platforms,
and we were only testing for the lowercase extension.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Dmitry Belyavskiy <[email protected]>
(Merged from openssl#19604)

(cherry picked from commit 119b7b5)
  • Loading branch information
levitte committed Nov 4, 2022
1 parent 4aabade commit 22530d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/sha/asm/sha512-ia64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
# $output is the last argument if it looks like a file (it has an extension)
$output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef;

if ($output =~ /512.*\.[s|asm]/) {
if ($output =~ /512.*\.[s|asm]/i) {
$SZ=8;
$BITS=8*$SZ;
$LDW="ld8";
Expand All @@ -92,7 +92,7 @@
@sigma0=(1, 8, 7);
@sigma1=(19,61, 6);
$rounds=80;
} elsif ($output =~ /256.*\.[s|asm]/) {
} elsif ($output =~ /256.*\.[s|asm]/i) {
$SZ=4;
$BITS=8*$SZ;
$LDW="ld4";
Expand Down

0 comments on commit 22530d3

Please sign in to comment.