The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use Test::More tests => 1;
use Digest::CMAC;

my $cmac = Digest::CMAC->new(pack 'H*', '2b7e151628aed2a6abf7158809cf4f3c');

$cmac->add(pack 'H*',
    '6bc1bee22e409f96e93d7e117393172a'.
    'ae2d8a571e03ac9c9eb76fac45af8e51'.
    '30c81c46a35ce411e5fbc1191a0a52ef'.
    'f69f2445df4f9b17ad2b417be66c3710'
);
ok($cmac->digest eq pack 'H*', '51f0bebf7e3b9d92fc49741779363cfe');