0.04
Low commit activity in last 3 years
No release in over a year
Ruby Gem for RFC 4493, 4494, 4615 - The AES-CMAC Algorithm
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8, >= 0.8.22
~> 12.3, >= 12.3.2
~> 4.3, >= 4.3.0
~> 0.50, >= 0.50.0
~> 3.2, >= 3.2.9
~> 0.9, >= 0.9.16
 Project Readme

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