Skip to content

SmallLars/openssl-cmac

 
 

Repository files navigation

Gem Version Dependency Status Build Status Coverage Status Code Climate Inline docs

openssl-cmac

Ruby Gem for

Installation

Add this line to your application's Gemfile:

gem 'openssl-cmac'

And then execute:

$ bundle

Or install it yourself as:

$ gem install openssl-cmac

Usage

Example 1:

require 'openssl/cmac'
mac = OpenSSL::CMAC.digest('AES', 'message', 'key')

Example 2:

require 'openssl/cmac'
cmac = OpenSSL::CMAC.new('AES', 'key')
cmac.update('message chunk 1')
...
cmac.update('message chunk n')
mac = cmac.digest

About

Ruby Gem for RFC 4493, 4494, 4615 - The AES-CMAC Algorithm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%