smalllars / openssl-ccm Goto Github PK
View Code? Open in Web Editor NEWRuby Gem for RFC 3610 - Counter with CBC-MAC (CCM)
Home Page: rubygems.org/gems/openssl-ccm
License: MIT License
Ruby Gem for RFC 3610 - Counter with CBC-MAC (CCM)
Home Page: rubygems.org/gems/openssl-ccm
License: MIT License
My current system is using lower case letters to =o
Any reasons why I should not publish the current master as version 1.2.2?
Hi there @SmallLars - thanks for the openssl-ccm Gem! ๐
It looks like OpenSSL 3.0 is out now, and the library/unit tests no longer work as expected with OpenSSL 3.0
https://github.com/ruby/openssl/blob/b31446464e1e9f8bd0c58e92f9e74a9c7663b0e0/History.md#version-300
With a fresh Ubuntu 22.04 machine, and the default Ruby 3.0 and OpenSSL 3.0 install the test suite fails:
Failure: test_aes_data(CCMTest)
/home/a/openssl-ccm/test/test_ccm.rb:294:in `block (5 levels) in test_aes_data'
291: output = o_file.read
292: ccm = OpenSSL::CCM.new(cipher, [key[j]].pack('H*'), mac_len[j])
293: c = ccm.encrypt(input, [nonce[j]].pack('H*'))
=> 294: assert_equal(output.unpack('H*'), c.unpack('H*'),
295: "Wrong ENCRYPT in Vector #{i + 1}")
296: end
297: end
With openssl 1.1.1n and libressl tests pass as expected:
6 tests, 203 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
I'm happy to help out where possible, let me know your thoughts ๐
It is necessary to adjust the travis.yml according to:
https://docs.travis-ci.com/user/languages/ruby/
https://docs.travis-ci.com/user/caching/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.