summaryrefslogtreecommitdiffstats
path: root/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm
diff options
context:
space:
mode:
authorAlexey Mazurin <mazurin.alexey@gmail.com>2015-12-29 17:48:22 +0400
committerAlexey Mazurin <mazurin.alexey@gmail.com>2015-12-29 17:48:22 +0400
commit6db6275045f4e71752bc890a4ccea643779e5010 (patch)
treecd89d2b008eb3fcda46059599029576db943244b /lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm
parent81054c945a6ebf7a7d9d55a9393c76e3951b6766 (diff)
downloadspreadsheet-parsexlsx-6db6275045f4e71752bc890a4ccea643779e5010.tar.gz
spreadsheet-parsexlsx-6db6275045f4e71752bc890a4ccea643779e5010.zip
replace in pack() "V" to "L<"
Diffstat (limited to 'lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm')
-rw-r--r--lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm b/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm
index e5c569d..b637a0b 100644
--- a/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm
+++ b/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm
@@ -47,7 +47,7 @@ sub _generateDecryptionKey {
unless ($self->{pregeneratedKey}) {
$hash = $self->{hashProc}->($self->{salt} . Encode::encode('UTF-16LE', $self->{password}));
for (my $i = 0; $i < $self->{spinCount}; $i++) {
- $hash = $self->{hashProc}->(pack('V', $i) . $hash);
+ $hash = $self->{hashProc}->(pack('L<', $i) . $hash);
}
$self->{pregeneratedKey} = $hash;
}