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