summaryrefslogtreecommitdiffstats
path: root/crypto/sha
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-11-04 10:37:13 +0100
committerRichard Levitte <levitte@openssl.org>2022-11-04 11:38:09 +0100
commit733084ae065038e5ffb892fad1999cd028d3abdd (patch)
treeee3d2f289321a909bc2f4a03d9dc2913ac9f0aab /crypto/sha
parent6f6d7eeda1d62affc379b0b91c851d1a17f149d1 (diff)
crypto/sha/asm/sha512-ia64.pl: When checking assembler file names, ignore 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 <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/19604) (cherry picked from commit 119b7b5f2ad7efcf273f395e7633747f56ff3f95)
Diffstat (limited to 'crypto/sha')
-rwxr-xr-xcrypto/sha/asm/sha512-ia64.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/sha/asm/sha512-ia64.pl b/crypto/sha/asm/sha512-ia64.pl
index eccc6c92e7..e147f2682d 100755
--- a/crypto/sha/asm/sha512-ia64.pl
+++ b/crypto/sha/asm/sha512-ia64.pl
@@ -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";
@@ -92,7 +92,7 @@ if ($output =~ /512.*\.[s|asm]/) {
@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";