├── .gitignore ├── .rubocop.yml ├── .travis.yml ├── .yardopts ├── ChangeLog.md ├── Contributing.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── ecdsa.gemspec ├── lib ├── ecdsa.rb └── ecdsa │ ├── format.rb │ ├── format │ ├── decode_error.rb │ ├── field_element_octet_string.rb │ ├── integer_octet_string.rb │ ├── point_octet_string.rb │ └── signature_der_string.rb │ ├── group.rb │ ├── group │ ├── nistp192.rb │ ├── nistp224.rb │ ├── nistp256.rb │ ├── nistp384.rb │ ├── nistp521.rb │ ├── secp112r1.rb │ ├── secp112r2.rb │ ├── secp128r1.rb │ ├── secp128r2.rb │ ├── secp160k1.rb │ ├── secp160r1.rb │ ├── secp160r2.rb │ ├── secp192k1.rb │ ├── secp192r1.rb │ ├── secp224k1.rb │ ├── secp224r1.rb │ ├── secp256k1.rb │ ├── secp256r1.rb │ ├── secp384r1.rb │ └── secp521r1.rb │ ├── point.rb │ ├── prime_field.rb │ ├── recover_public_key.rb │ ├── sign.rb │ ├── signature.rb │ ├── verify.rb │ └── version.rb ├── resources.txt ├── spec ├── ecdsa_spec.rb ├── example_spec.rb ├── format │ ├── field_element_octet_string_spec.rb │ ├── integer_octet_string_spec.rb │ ├── point_octet_string_format_spec.rb │ └── signature_der_string_spec.rb ├── group_spec.rb ├── nist_example_spec.rb ├── point_spec.rb ├── prime_field_spec.rb ├── recover_public_key_spec.rb ├── sign_spec.rb ├── signature_spec.rb ├── spec_helper.rb └── verify_spec.rb └── util └── make_curve.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/.travis.yml -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/.yardopts -------------------------------------------------------------------------------- /ChangeLog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/ChangeLog.md -------------------------------------------------------------------------------- /Contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/Contributing.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/Rakefile -------------------------------------------------------------------------------- /ecdsa.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/ecdsa.gemspec -------------------------------------------------------------------------------- /lib/ecdsa.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa.rb -------------------------------------------------------------------------------- /lib/ecdsa/format.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/format.rb -------------------------------------------------------------------------------- /lib/ecdsa/format/decode_error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/format/decode_error.rb -------------------------------------------------------------------------------- /lib/ecdsa/format/field_element_octet_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/format/field_element_octet_string.rb -------------------------------------------------------------------------------- /lib/ecdsa/format/integer_octet_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/format/integer_octet_string.rb -------------------------------------------------------------------------------- /lib/ecdsa/format/point_octet_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/format/point_octet_string.rb -------------------------------------------------------------------------------- /lib/ecdsa/format/signature_der_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/format/signature_der_string.rb -------------------------------------------------------------------------------- /lib/ecdsa/group.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/nistp192.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/nistp192.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/nistp224.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/nistp224.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/nistp256.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/nistp256.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/nistp384.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/nistp384.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/nistp521.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/nistp521.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp112r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp112r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp112r2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp112r2.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp128r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp128r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp128r2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp128r2.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp160k1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp160k1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp160r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp160r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp160r2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp160r2.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp192k1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp192k1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp192r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp192r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp224k1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp224k1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp224r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp224r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp256k1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp256k1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp256r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp256r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp384r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp384r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/group/secp521r1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/group/secp521r1.rb -------------------------------------------------------------------------------- /lib/ecdsa/point.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/point.rb -------------------------------------------------------------------------------- /lib/ecdsa/prime_field.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/prime_field.rb -------------------------------------------------------------------------------- /lib/ecdsa/recover_public_key.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/recover_public_key.rb -------------------------------------------------------------------------------- /lib/ecdsa/sign.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/sign.rb -------------------------------------------------------------------------------- /lib/ecdsa/signature.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/signature.rb -------------------------------------------------------------------------------- /lib/ecdsa/verify.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/lib/ecdsa/verify.rb -------------------------------------------------------------------------------- /lib/ecdsa/version.rb: -------------------------------------------------------------------------------- 1 | module ECDSA 2 | VERSION = '1.2.0' 3 | end 4 | -------------------------------------------------------------------------------- /resources.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/resources.txt -------------------------------------------------------------------------------- /spec/ecdsa_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/ecdsa_spec.rb -------------------------------------------------------------------------------- /spec/example_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/example_spec.rb -------------------------------------------------------------------------------- /spec/format/field_element_octet_string_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/format/field_element_octet_string_spec.rb -------------------------------------------------------------------------------- /spec/format/integer_octet_string_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/format/integer_octet_string_spec.rb -------------------------------------------------------------------------------- /spec/format/point_octet_string_format_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/format/point_octet_string_format_spec.rb -------------------------------------------------------------------------------- /spec/format/signature_der_string_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/format/signature_der_string_spec.rb -------------------------------------------------------------------------------- /spec/group_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/group_spec.rb -------------------------------------------------------------------------------- /spec/nist_example_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/nist_example_spec.rb -------------------------------------------------------------------------------- /spec/point_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/point_spec.rb -------------------------------------------------------------------------------- /spec/prime_field_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/prime_field_spec.rb -------------------------------------------------------------------------------- /spec/recover_public_key_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/recover_public_key_spec.rb -------------------------------------------------------------------------------- /spec/sign_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/sign_spec.rb -------------------------------------------------------------------------------- /spec/signature_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/signature_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/verify_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/spec/verify_spec.rb -------------------------------------------------------------------------------- /util/make_curve.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DavidEGrayson/ruby_ecdsa/HEAD/util/make_curve.rb --------------------------------------------------------------------------------