Skip to content

Commit

Permalink
Merge pull request #7295 from Obihoernchen/cbc_3
Browse files Browse the repository at this point in the history
Remove deprecated blocksize argument
  • Loading branch information
besawn committed Feb 17, 2023
2 parents 75be9d6 + d44c86f commit 0cde47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xCAT-server/lib/perl/xCAT/IPMI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ sub handle_ipmi_packet {
my @payload = splice(@rsp, 12, $psize);
if ($encrypted) {
my $iv = pack("C*", splice @payload, 0, 16);
my $cipher = Crypt::CBC->new(-literal_key => 1, -key => $self->{aeskey}, -cipher => "Crypt::Rijndael", -header => "none", -iv => $iv, -keysize => 16, -blocksize => 16, -padding => \&cbc_pad);
my $cipher = Crypt::CBC->new(-literal_key => 1, -key => $self->{aeskey}, -cipher => "Crypt::Rijndael", -header => "none", -iv => $iv, -keysize => 16, -padding => \&cbc_pad);
my $crypted = pack("C*", @payload);
@payload = unpack("C*", $cipher->decrypt($crypted));
}
Expand Down

0 comments on commit 0cde47a

Please sign in to comment.