use
diagnostics;
use
strict;
use
warnings;
BEGIN {
use_ok(
'Crypt::Anubis'
)
};
# Set 2, vector#125:
BEGIN {
my
$key
=
pack
"H32"
,
"00000000000000000000000000000000"
;
my
$cipher
= new Crypt::Anubis
$key
;
my
$ciphertext
=
pack
"H32"
,
"2adc082af559041b40ed5c4a16853a44"
;
my
$plaintext
=
$cipher
->decrypt(
$ciphertext
);
my
$answer
=
unpack
"H*"
,
$plaintext
;
is(
"00000000000000000000000000000004"
,
$answer
);
};