0.08
No release in over 3 years
Low commit activity in last 3 years
Ruby Gem for RFC 3610 - Counter with CBC-MAC (CCM)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 3.0
 Project Readme

Gem Version Coverage Status Maintainability Inline docs

openssl-ccm

Ruby Gem for RFC 3610 - Counter with CBC-MAC (CCM)

Installation

Add this line to your application's Gemfile:

gem 'openssl-ccm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install openssl-ccm

Usage

Example:

require 'openssl/ccm'
ccm = OpenSSL::CCM.new('AES', 'My16Byte LongKey', 8)
ciphertext = ccm.encrypt('The message to encrypt', 'The nonce')
plaintext = ccm.decrypt(ciphertext, 'The nonce')

After initialisation, you can use the object as often you need.