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