Registry / crypto / openssl-ccm

openssl-ccm

JSON →
library1.3.0rbrubygemsunverified

Ruby implementation of RFC 3610 Counter with CBC-MAC (CCM) mode for authenticated encryption.

gem install openssl-ccm
INSTALL
IMPORT
SIG · OPENSSL-CCM
O
openssl-ccm
cryptorubyv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OpenSSL::CCM
require 'openssl/ccm'

Encrypt data using AES-CCM with a given key and nonce.

require 'openssl/ccm' key = ["0123456789abcdef"].pack("H*") nonce = ["0001020304050607"].pack("H*") data = "Hello, world!" encrypted = OpenSSL::CCM.encrypt(key, nonce, data, "") puts encrypted.unpack1("H*")
Debug
Known issues
gotchaRequires OpenSSL support in Ruby; may not work with all Ruby installations.
fix
Ensure Ruby is compiled with OpenSSL support.
affects: >= 1.0.0
Upgrade
Version history
1.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
Resources
openssl-ccm — gem install openssl-ccm · libregistry