mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
80-test_cms.t: Fix rsapssSaltlen check on MinGW
Fixes #19907 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19957)
This commit is contained in:
parent
a78a7917ae
commit
55e2dd8c31
@ -826,7 +826,7 @@ sub rsapssSaltlen {
|
||||
my $pssparam_offset = -1;
|
||||
while ($_ = shift @asn1parse) {
|
||||
chomp;
|
||||
next unless /:rsassaPss$/;
|
||||
next unless /:rsassaPss/;
|
||||
# This line contains :rsassaPss, the next line contains a raw dump of the
|
||||
# RSA_PSS_PARAMS sequence; obtain its offset
|
||||
$_ = shift @asn1parse;
|
||||
@ -852,7 +852,7 @@ sub rsapssSaltlen {
|
||||
# This assumes the salt length is the last field, which may possibly be
|
||||
# incorrect if there is a non-standard trailer field, but there almost never
|
||||
# is in PSS.
|
||||
if ($pssparam[-1] =~ /prim:\s+INTEGER\s+:([A-Fa-f0-9]+)$/) {
|
||||
if ($pssparam[-1] =~ /prim:\s+INTEGER\s+:([A-Fa-f0-9]+)/) {
|
||||
$saltlen = hex($1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user