mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
Merge pull request #7295 from Obihoernchen/cbc_3
Remove deprecated blocksize argument
This commit is contained in:
commit
0cde47aa8a
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user