use
diagnostics;
use
strict;
use
warnings;
BEGIN {
use_ok(
'Crypt::Anubis'
)
};
# Set 3, vector# 8:
BEGIN {
my
$key
=
pack
"H32"
,
"08080808080808080808080808080808"
;
my
$cipher
= new Crypt::Anubis
$key
;
my
$ciphertext
=
pack
"H32"
,
"256c03e938b5532df5c7d3037edc4817"
;
my
$plaintext
=
$cipher
->decrypt(
$ciphertext
);
my
$answer
=
unpack
"H*"
,
$plaintext
;
is(
"08080808080808080808080808080808"
,
$answer
);
};