Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-ed25519 for openSUSE:Factory checked in at 2022-02-04 00:45:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-ed25519 (Old) and /work/SRC/openSUSE:Factory/.rubygem-ed25519.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-ed25519" Fri Feb 4 00:45:40 2022 rev:2 rq:950094 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-ed25519/rubygem-ed25519.changes 2019-01-21 10:54:16.967733817 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-ed25519.new.1898/rubygem-ed25519.changes 2022-02-04 00:45:41.509386126 +0100 @@ -1,0 +2,17 @@ +Tue Jan 25 06:51:09 UTC 2022 - Stephan Kulow <co...@suse.com> + +updated to version 1.3.0 + see installed CHANGES.md + + ## [1.3.0] (2022-01-16) + + [1.3.0]: https://github.com/crypto-rb/ed25519/compare/v1.2.4...v1.3.0 + + - Bump rubocop dependencies. ([#30]) + - Add support for Ruby 3 & JRuby 9.3.0. ([#31]) + + [#30]: https://github.com/crypto-rb/ed25519/pull/30 + [#31]: https://github.com/crypto-rb/ed25519/pull/31 + + +------------------------------------------------------------------- Old: ---- ed25519-1.2.4.gem New: ---- ed25519-1.3.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-ed25519.spec ++++++ --- /var/tmp/diff_new_pack.jClr4n/_old 2022-02-04 00:45:42.125381633 +0100 +++ /var/tmp/diff_new_pack.jClr4n/_new 2022-02-04 00:45:42.137381546 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-ed25519 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,15 +24,15 @@ # Name: rubygem-ed25519 -Version: 1.2.4 +Version: 1.3.0 Release: 0 %define mod_name ed25519 %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: %{rubydevel >= 2.0.0} +BuildRequires: %{rubydevel >= 2.4.0} BuildRequires: %{rubygem gem2rpm} -Url: https://github.com/crypto-rb/ed25519 +BuildRequires: ruby-macros >= 5 +URL: https://github.com/RubyCrypto/ed25519 Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rubygem-ed25519-rpmlintrc Source2: gem2rpm.yml ++++++ ed25519-1.2.4.gem -> ed25519-1.3.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 2018-01-05 02:22:27.000000000 +0100 +++ new/.gitignore 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -/Gemfile.lock -/.bundle/ -/.yardoc -/_yardoc/ -/coverage/ -/doc/ -/pkg/ -/spec/reports/ -/tmp/ -*.o -*.so -*.bundle -*.jar -.rspec_status -.rakeTasks diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.rspec new/.rspec --- old/.rspec 2018-01-05 02:22:27.000000000 +0100 +++ new/.rspec 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ ---color ---format documentation ---order random ---warnings ---require spec_helper diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.rubocop.yml new/.rubocop.yml --- old/.rubocop.yml 2018-01-05 02:22:27.000000000 +0100 +++ new/.rubocop.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,35 +0,0 @@ -AllCops: - TargetRubyVersion: 2.4 - DisplayCopNames: true - -# -# Style -# - -Style/StringLiterals: - EnforcedStyle: double_quotes - -# -# Metrics -# - -Metrics/AbcSize: - Enabled: false - -Metrics/CyclomaticComplexity: - Enabled: false - -Metrics/PerceivedComplexity: - Enabled: false - -Metrics/BlockLength: - Max: 100 - -Metrics/ClassLength: - Max: 100 - -Metrics/LineLength: - Max: 128 - -Metrics/MethodLength: - Max: 25 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2018-01-05 02:22:27.000000000 +0100 +++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,26 +0,0 @@ -language: ruby -cache: bundler - -before_install: - - gem update --system - - gem --version - - gem install bundler -v 1.16.1 - - bundle --version - -bundler_args: --without development - -rvm: - - jruby-9.1.15.0 - - 2 - - 2.1 - - 2.2 - - 2.3.6 - - 2.4.3 - - 2.5.0 - -matrix: - fast_finish: true - -branches: - only: - - master diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGES.md new/CHANGES.md --- old/CHANGES.md 2018-01-05 02:22:27.000000000 +0100 +++ new/CHANGES.md 2022-01-16 22:26:13.000000000 +0100 @@ -1,3 +1,13 @@ +## [1.3.0] (2022-01-16) + +[1.3.0]: https://github.com/crypto-rb/ed25519/compare/v1.2.4...v1.3.0 + +- Bump rubocop dependencies. ([#30]) +- Add support for Ruby 3 & JRuby 9.3.0. ([#31]) + +[#30]: https://github.com/crypto-rb/ed25519/pull/30 +[#31]: https://github.com/crypto-rb/ed25519/pull/31 + ## [1.2.4] (2018-01-04) [1.2.4]: https://github.com/crypto-rb/ed25519/compare/v1.2.3...v1.2.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CODE_OF_CONDUCT.md new/CODE_OF_CONDUCT.md --- old/CODE_OF_CONDUCT.md 2018-01-05 02:22:27.000000000 +0100 +++ new/CODE_OF_CONDUCT.md 1970-01-01 01:00:00.000000000 +0100 @@ -1,74 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, gender identity and expression, level of experience, -nationality, personal appearance, race, religion, or sexual identity and -orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or -advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at basc...@gmail.com. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2018-01-05 02:22:27.000000000 +0100 +++ new/Gemfile 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -source "https://rubygems.org" - -gemspec - -group :development, :test do - gem "rake", require: false - gem "rake-compiler", "~> 1.0", require: false - gem "rspec", "~> 3.7", require: false - gem "rubocop", "0.50.0", require: false -end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE new/LICENSE --- old/LICENSE 2018-01-05 02:22:27.000000000 +0100 +++ new/LICENSE 2022-01-16 22:26:13.000000000 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2012-2017 Tony Arcieri +Copyright (c) 2012-2021 Tony Arcieri MIT License diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2018-01-05 02:22:27.000000000 +0100 +++ new/README.md 2022-01-16 22:26:13.000000000 +0100 @@ -1,17 +1,13 @@ -# ed25519.rb [![Latest Version][gem-shield]][gem-link] [![Build Status][build-image]][build-link] [![Appveyor CI Status][appveyor-image]][appveyor-link] [![Yard Docs][docs-image]][docs-link] [![License: MIT][license-image]][license-link] [![Gitter Chat][gitter-image]][gitter-link] +# ed25519.rb [![Latest Version][gem-shield]][gem-link] [![CI Status][ci-image]][ci-link] [![Yard Docs][docs-image]][docs-link] [![License: MIT][license-image]][license-link] [gem-shield]: https://badge.fury.io/rb/ed25519.svg [gem-link]: https://rubygems.org/gems/ed25519 -[build-image]: https://travis-ci.org/crypto-rb/ed25519.svg?branch=master -[build-link]: https://travis-ci.org/crypto-rb/ed25519 -[appveyor-image]: https://ci.appveyor.com/api/projects/status/4s05bcae0mow85v1?svg=true -[appveyor-link]: https://ci.appveyor.com/project/tarcieri/ed25519 +[ci-image]: https://github.com/RubyCrypto/ed25519/workflows/CI/badge.svg +[ci-link]: https://github.com/RubyCrypto/ed25519/actions?query=workflow%3ACI+branch%3Amaster [docs-image]: https://img.shields.io/badge/yard-docs-blue.svg -[docs-link]: http://www.rubydoc.info/gems/ed25519/1.2.3 +[docs-link]: http://www.rubydoc.info/gems/ed25519/1.3.0 [license-image]: https://img.shields.io/badge/license-MIT-blue.svg -[license-link]: https://github.com/crypto-rb/ed25519/blob/master/LICENSE -[gitter-image]: https://badges.gitter.im/badge.svg -[gitter-link]: https://gitter.im/crypto-rb/Lobby +[license-link]: https://github.com/RubyCrypto/ed25519/blob/master/LICENSE A Ruby binding to the Ed25519 elliptic curve public-key signature system described in [RFC 8032]. @@ -27,7 +23,7 @@ [RFC 8032]: https://tools.ietf.org/html/rfc8032 [str4d/ed25519-java]: https://github.com/str4d/ed25519-java -[x25519 gem]: https://github.com/crypto-rb/x25519 +[x25519 gem]: https://github.com/RubyCrypto/x25519 ## What is Ed25519? @@ -38,7 +34,7 @@ take at least 2^128 operations, providing the same security level as AES-128, NIST P-256, and RSA-3072. - + Ed25519 has a number of unique properties that make it one of the best-in-class digital signature algorithms: @@ -62,12 +58,27 @@ [Schnorr signature]: https://en.wikipedia.org/wiki/Schnorr_signature +### Is it any good? + +[Yes.](http://news.ycombinator.com/item?id=3067434) + +## Help and Discussion + +Have questions? Want to suggest a feature or change? Join a discussion group: + +* [Crypto.rb Gitter]: web-based chat about Ruby crypto projects including **ed25519**. +* [Crypto.rb Google Group]: join via web or email ([crypto-rb+subscr...@googlegroups.com]) + +[Crypto.rb Gitter]: https://gitter.im/crypto-rb/Lobby +[Crypto.rb Google Group]: https://groups.google.com/forum/#!forum/crypto-rb +[crypto-rb+subscr...@googlegroups.com]: mailto:crypto-rb+subscr...@googlegroups.com?subject=subscribe + ## Requirements **ed25519.rb** is supported on and tested against the following platforms: -* MRI 2.0, 2.1, 2.2, 2.3, 2.4, 2.5 -* JRuby 9000+ +* MRI 2.4, 2.5, 2.6, 2.7, 3.0 +* JRuby 9.2.19, 9.3.0 ## Installation @@ -150,21 +161,21 @@ ## Contributing -Bug reports and pull requests are welcome on GitHub at https://github.com/crypto-rb/ed25519. +Bug reports and pull requests are welcome on GitHub at https://github.com/RubyCrypto/ed25519. This project is intended to be a safe, welcoming space for collaboration, and contributors areexpected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License -Copyright (c) 2012-2018 Tony Arcieri. Distributed under the MIT License. See +Copyright (c) 2012-2021 Tony Arcieri. Distributed under the MIT License. See [LICENSE] for further details. -[LICENSE]: https://github.com/crypto-rb/ed25519/blob/master/LICENSE +[LICENSE]: https://github.com/RubyCrypto/ed25519/blob/master/LICENSE ## Code of Conduct Everyone interacting in the **ed25519.rb** project???s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct]. -[code of conduct]: https://github.com/crypto-rb/ed25519/blob/master/CODE_OF_CONDUCT.md +[code of conduct]: https://github.com/RubyCrypto/ed25519/blob/master/CODE_OF_CONDUCT.md diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2018-01-05 02:22:27.000000000 +0100 +++ new/Rakefile 1970-01-01 01:00:00.000000000 +0100 @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -require "bundler/gem_tasks" - -require "rake/clean" -CLEAN.include("**/*.o", "**/*.so", "**/*.bundle", "*.jar", "pkg", "tmp") - -if defined? JRUBY_VERSION - require "rake/javaextensiontask" - Rake::JavaExtensionTask.new("ed25519_jruby") do |ext| - ext.ext_dir = "ext/ed25519_jruby" - end -else - require "rake/extensiontask" - - Rake::ExtensionTask.new("ed25519_ref10") do |ext| - ext.ext_dir = "ext/ed25519_ref10" - end -end - -require "rspec/core/rake_task" -RSpec::Core::RakeTask.new - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -task default: %w[compile spec rubocop] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/appveyor.yml new/appveyor.yml --- old/appveyor.yml 2018-01-05 02:22:27.000000000 +0100 +++ new/appveyor.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,21 +0,0 @@ -branches: - only: - - master - -environment: - PATH: C:\Ruby%RUBY_VERSION%\DevKit\mingw\bin;C:\Ruby%RUBY_VERSION%\bin;C:\Ruby%RUBY_VERSION%\DevKit\bin;%PATH% - matrix: - - RUBY_VERSION: "21-x64" - - RUBY_VERSION: "22-x64" - - RUBY_VERSION: "23-x64" - - RUBY_VERSION: "24-x64" - -build: off - -test_script: - - SET RAKEOPT=-rdevkit - - ruby -v - - gem -v - - bundle -v - - bundle - - bundle exec rake compile spec Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ed25519.gemspec new/ed25519.gemspec --- old/ed25519.gemspec 2018-01-05 02:22:27.000000000 +0100 +++ new/ed25519.gemspec 1970-01-01 01:00:00.000000000 +0100 @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -require File.expand_path("lib/ed25519/version", __dir__) - -Gem::Specification.new do |spec| - spec.name = "ed25519" - spec.version = Ed25519::VERSION - spec.authors = ["Tony Arcieri"] - spec.email = ["tony.arci...@gmail.com"] - spec.summary = "An efficient digital signature library providing the Ed25519 algorithm" - spec.description = <<-DESCRIPTION.strip.gsub(/\s+/, " ") - A Ruby binding to the Ed25519 elliptic curve public-key signature system - described in RFC 8032. - DESCRIPTION - spec.homepage = "https://github.com/crypto-rb/ed25519" - spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] - - if defined? JRUBY_VERSION - spec.platform = "java" - spec.files << "lib/ed25519_jruby.jar" - else - spec.platform = Gem::Platform::RUBY - spec.extensions = ["ext/ed25519_ref10/extconf.rb"] - end - - spec.required_ruby_version = ">= 2.0.0" - spec.add_development_dependency "bundler", "~> 1.16" -end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/ed25519_ref10/extconf.rb new/ext/ed25519_ref10/extconf.rb --- old/ext/ed25519_ref10/extconf.rb 2018-01-05 02:22:27.000000000 +0100 +++ new/ext/ed25519_ref10/extconf.rb 2022-01-16 22:26:13.000000000 +0100 @@ -1,9 +1,9 @@ # frozen_string_literal: true -# rubocop:disable Style/GlobalVars - require "mkmf" +# rubocop:disable Style/GlobalVars $CFLAGS << " -Wall -O3 -pedantic -std=c99" +# rubocop:enable Style/GlobalVars create_makefile "ed25519_ref10" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ed25519/verify_key.rb new/lib/ed25519/verify_key.rb --- old/lib/ed25519/verify_key.rb 2018-01-05 02:22:27.000000000 +0100 +++ new/lib/ed25519/verify_key.rb 2022-01-16 22:26:13.000000000 +0100 @@ -25,6 +25,7 @@ end return true if Ed25519.provider.verify(@key_bytes, signature, message) + raise VerifyError, "signature verification failed!" end @@ -38,7 +39,7 @@ # Show hex representation of serialized coordinate in string inspection def inspect - "#<#{self.class}:#{@key_bytes.unpack('H*').first}>" + "#<#{self.class}:#{@key_bytes.unpack1('H*')}>" end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ed25519/version.rb new/lib/ed25519/version.rb --- old/lib/ed25519/version.rb 2018-01-05 02:22:27.000000000 +0100 +++ new/lib/ed25519/version.rb 2022-01-16 22:26:13.000000000 +0100 @@ -1,5 +1,5 @@ # frozen_string_literal: true module Ed25519 - VERSION = "1.2.4" + VERSION = "1.3.0" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ed25519.rb new/lib/ed25519.rb --- old/lib/ed25519.rb 2018-01-05 02:22:27.000000000 +0100 +++ new/lib/ed25519.rb 2022-01-16 22:26:13.000000000 +0100 @@ -5,7 +5,7 @@ require "ed25519/verify_key" # The Ed25519 digital signatre algorithm -# rubocop:disable Metrics/LineLength +# rubocop:disable Layout/LineLength module Ed25519 module_function @@ -28,6 +28,7 @@ # Select the Ed25519::Provider to use based on the current environment if defined? JRUBY_VERSION + require "jruby" require "ed25519_jruby" self.provider = org.cryptorb.Ed25519Provider.createEd25519Module(JRuby.runtime) else @@ -39,34 +40,33 @@ def validate_key_bytes(key_bytes) raise TypeError, "expected String, got #{key_bytes.class}" unless key_bytes.is_a?(String) return true if key_bytes.bytesize == KEY_SIZE + raise ArgumentError, "expected #{KEY_SIZE}-byte String, got #{key_bytes.bytesize}" end # Perform a self-test to ensure the selected provider is working def self_test signature_key = Ed25519::SigningKey.new("A" * 32) - raise SelfTestFailure, "failed to generate verify key correctly" unless signature_key.verify_key.to_bytes.unpack("H*").first == "db995fe25169d141cab9bbba92baa01f9f2e1ece7df4cb2ac05190f37fcc1f9d" + raise SelfTestFailure, "failed to generate verify key correctly" unless signature_key.verify_key.to_bytes.unpack1("H*") == "db995fe25169d141cab9bbba92baa01f9f2e1ece7df4cb2ac05190f37fcc1f9d" message = "crypto libraries should self-test on boot" signature = signature_key.sign(message) - raise SelfTestFailure, "failed to generate correct signature" unless signature.unpack("H*").first == "c62c12a3a6cbfa04800d4be81468ef8aecd152a6a26a81d91257baecef13ba209531fe905a843e833c8b71cee04400fa2af3a29fef1152ece470421848758d0a" + raise SelfTestFailure, "failed to generate correct signature" unless signature.unpack1("H*") == "c62c12a3a6cbfa04800d4be81468ef8aecd152a6a26a81d91257baecef13ba209531fe905a843e833c8b71cee04400fa2af3a29fef1152ece470421848758d0a" verify_key = signature_key.verify_key raise SelfTestFailure, "failed to verify a valid signature" unless verify_key.verify(signature, message) - bad_signature = signature[0...63] + "X" + bad_signature = "#{signature[0...63]}X" ex = nil - - # rubocop:disable Lint/HandleExceptions begin verify_key.verify(bad_signature, message) rescue Ed25519::VerifyError => ex end - # rubocop:enable Lint/HandleExceptions raise SelfTestFailure, "failed to detect an invalid signature" unless ex.is_a?(Ed25519::VerifyError) end end +# rubocop:enable Layout/LineLength # Automatically run self-test when library loads Ed25519.self_test Binary files old/lib/ed25519_jruby.jar and new/lib/ed25519_jruby.jar differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-01-05 02:22:26.000000000 +0100 +++ new/metadata 2022-01-16 22:26:13.000000000 +0100 @@ -1,29 +1,29 @@ --- !ruby/object:Gem::Specification name: ed25519 version: !ruby/object:Gem::Version - version: 1.2.4 + version: 1.3.0 platform: ruby authors: - Tony Arcieri -autorequire: +autorequire: bindir: exe cert_chain: [] -date: 2018-01-05 00:00:00.000000000 Z +date: 2022-01-16 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler requirement: !ruby/object:Gem::Requirement requirements: - - - "~>" + - - ">=" - !ruby/object:Gem::Version - version: '1.16' + version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - - "~>" + - - ">=" - !ruby/object:Gem::Version - version: '1.16' + version: '0' description: A Ruby binding to the Ed25519 elliptic curve public-key signature system described in RFC 8032. email: @@ -31,20 +31,13 @@ executables: [] extensions: - ext/ed25519_ref10/extconf.rb -extra_rdoc_files: [] +extra_rdoc_files: +- README.md +- ed25519.png files: -- ".gitignore" -- ".rspec" -- ".rubocop.yml" -- ".travis.yml" - CHANGES.md -- CODE_OF_CONDUCT.md -- Gemfile - LICENSE - README.md -- Rakefile -- appveyor.yml -- ed25519.gemspec - ed25519.png - ext/ed25519_jruby/LICENSE.txt - ext/ed25519_jruby/README.md @@ -110,11 +103,12 @@ - lib/ed25519/signing_key.rb - lib/ed25519/verify_key.rb - lib/ed25519/version.rb -homepage: https://github.com/crypto-rb/ed25519 +- lib/ed25519_jruby.jar +homepage: https://github.com/RubyCrypto/ed25519 licenses: - MIT metadata: {} -post_install_message: +post_install_message: rdoc_options: [] require_paths: - lib @@ -122,16 +116,15 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: 2.0.0 + version: 2.4.0 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.7.4 -signing_key: +rubygems_version: 3.2.15 +signing_key: specification_version: 4 summary: An efficient digital signature library providing the Ed25519 algorithm test_files: []