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