Digest::CMAC

The One-key CBC MAC message authentication code
Download

Digest::CMAC Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Yuval Kogman
  • Publisher web site:
  • http://search.cpan.org/~nobull/

Digest::CMAC Tags


Digest::CMAC Description

The One-key CBC MAC message authentication code Digest::CMAC is a Perl module that implements OMAC1 blockcipher-based message authentication code. For OMAC1/OMAC. Check http://www.nuee.nagoya-u.ac.jp/labs/tiwata/omac/omac.html. Here is an excerpt of that page OMAC is a blockcipher-based message authentication code designed and analyzed by me and Kaoru Kurosawa. OMAC is a simple variant of the CBC MAC (Cipher Block Chaining Message Authentication Code). OMAC stands for One-Key CBC MAC. OMAC allows and is secure for messages of any bit length (while the CBC MAC is only secure on messages of one fixed length, and the length must be a multiple of the block length). Also, the efficiency of OMAC is highly optimized. It is almost as efficient as the CBC MAC. "NIST Special Publication 800-38B Recommendation for Block Cipher Modes of Operation: the CMAC Mode for Authentication" has been finalized on May 18, 2005. This Recommendation specifies CMAC, which is equivalent to OMAC (OMAC1).Like many block-cipher's Crypt:: modules like Crypt::Rijndael, and MIME::Base64.SYNOPSIS use Digest::CMAC; my $omac1 = Digest::CMAC->new($key); $omac1->add($data); my $binary_tag = $omac1->digest; my $hex_tag = $omac1->hexdigest; my $base64_tag = $omac1->b64digest; Requirements: · Perl


Digest::CMAC Related Software