New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

openssl-cmac

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openssl-cmac

2.0.2
Version published
Maintainers
2
Created

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

FAQs

Package last updated on 29 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts