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