Digest::OMAC2 - OMAC 2 implementation
use Digest::OMAC2; my $d = Digest::OMAC2->new( $key, $cipher );
OMAC 2 is a variant of the CMAC/OMAC 1 algorithm. The initialization routines are slightly different. OMAC2 actually precedes OMAC1, so Digest::CMAC/Digest::OMAC1 is the reccomended version. Supposedly OMAC1 was more rigorously analyzed.
To install Digest::CMAC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Digest::CMAC
CPAN shell
perl -MCPAN -e shell install Digest::CMAC
For more information on module installation, please visit the detailed CPAN module installation guide.