-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lars Schmertmann
committed
Apr 1, 2014
1 parent
6f4713d
commit bb4b74d
Showing
4 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
openssl-ccm | ||
=========== | ||
# openssl-ccm | ||
|
||
Ruby Gem for RFC 3610 - Counter with CBC-MAC (CCM) | ||
|
||
Abstract from tools.ietf.org/html/rfc3610: Counter with CBC-MAC (CCM) is a generic authenticated encryption block cipher mode. CCM is defined for use with 128-bit block ciphers, such as the Advanced Encryption Standard (AES). | ||
|
||
## 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
module OpenSSL | ||
# CCM Version | ||
class CCM | ||
VERSION = '1.0.0' | ||
VERSION = '1.1.0' | ||
end | ||
end |
Binary file not shown.