Subject: | Math::XOR no longer exists |
The module Math::XOR seems not to exist anymore. But you can use ^ for
xor'ing strings, too.
-Derik.
Patch:
--- Packet.pm-orig 2010-07-15 15:11:07.000000000 +0200
+++ Packet.pm 2010-07-15 15:11:38.000000000 +0200
@@ -126,7 +126,6 @@
use Carp::Clan;
use Digest::MD5 ('md5');
-use Math::XOR ('xor_buf');
use base qw{ Class::Accessor::Fast };
@@ -347,7 +346,7 @@
length($data),
);
- $data=xor_buf($data,$pseudo_pad);
+ $data=$data ^ $pseudo_pad;
return $data;
}