2017 © Pedro Peláez
 

library ecc

image

afk11/ecc

  • Saturday, March 3, 2018
  • by thomaskerin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 265 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 71 Forks
  • 0 Open issues
  • 23 Versions
  • 0 % Grown

The README.md

Pure PHP Elliptic Curve DSA and DH

Build Status, (*1)

Scrutinizer Code Quality Code Coverage, (*2)

Latest Stable Version Total Downloads Latest Unstable Version License, (*3)

Information

This library is a rewrite/update of Matyas Danter's ECC library. All credit goes to him., (*4)

For more information on Elliptic Curve Cryptography please read this fine article., (*5)

The library supports the following curves:, (*6)

  • secp112r1
  • secp256k1
  • nistp192
  • nistp224
  • nistp256 / secp256r1
  • nistp384 / secp384r1
  • nistp521

During ECDSA, a random value k is required. It is acceptable to use a true RNG to generate this value, but should the same k value ever be repeatedly used for a key, an attacker can recover that signing key. The HMAC random generator can derive a deterministic k value from the message hash and private key, voiding this concern., (*7)

The library uses a non-branching Montgomery ladder for scalar multiplication, as it's constant time and avoids secret dependant branches., (*8)

License

This package is released under the MIT license., (*9)

Requirements

  • PHP 7.0+ or PHP 8.0+
  • composer
  • ext-gmp

Support for older PHP versions: * v0.4.x: php ^5.6|<7.2 * v0.5.x: php ^7.0 * v1.0.x: php ^7.0|^8.0, (*10)

Installation

You can install this library via Composer :, (*11)

composer require mdanter/ecc:^1.0, (*12)

Contribute

When sending in pull requests, please make sure to run the make command., (*13)

The default target runs all PHPUnit and PHPCS tests. All tests must validate for your contribution to be accepted., (*14)

It's also always a good idea to check the results of the Scrutinizer analysis for your pull requests., (*15)

Usage

Examples: * Key generation * ECDH exchange * Signature creation * Signature verification, (*16)

The Versions

03/03 2018

v0.0.1

0.0.1.0

  Sources   Download

11/02 2018

dev-master

9999999-dev https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521 secp256r1 nistp384

02/10 2017

dev-master-remove-unused-param-generator

dev-master-remove-unused-param-generator https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521 secp256r1 nistp384

01/10 2017

dev-fixed-size-int

dev-fixed-size-int https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

09/06 2017

dev-fips-rebase-0.4

dev-fips-rebase-0.4 https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

08/06 2017

dev-fips-tests

dev-fips-tests https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521 secp256r1 nistp384

07/06 2017

dev-fips-tests-limit-coverage

dev-fips-tests-limit-coverage https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521 secp256r1 nistp384

26/06 2016

dev-remove-eccfactory-numbertheory

dev-remove-eccfactory-numbertheory https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-point-use-gmpmath

dev-point-use-gmpmath https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-test-signature-parsing

dev-test-signature-parsing https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-debugInfo-coverage

dev-debugInfo-coverage https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-test-fixes

dev-test-fixes https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-math-minor-test

dev-math-minor-test https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-number-theory-modmath

dev-number-theory-modmath https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-minor-test-signer

dev-minor-test-signer https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-curve-oid-mapper-test

dev-curve-oid-mapper-test https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-minor-test-rng-factory

dev-minor-test-rng-factory https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-minor-test-pubkey-parser

dev-minor-test-pubkey-parser https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

26/06 2016

dev-minor-test-case

dev-minor-test-case https://github.com/phpecc/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

diffie hellman ecdsa elliptic curve secp256k1 ecdh phpecc nistp192 nistp224 nistp256 nistp521

07/07 2014

0.3.x-dev

0.3.9999999.9999999-dev https://github.com/mdanter/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

07/07 2014

0.2.0

0.2.0.0 https://github.com/mdanter/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

07/07 2014

v0.3.0

0.3.0.0 https://github.com/mdanter/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

07/07 2014

v0.3.1

0.3.1.0 https://github.com/mdanter/phpecc

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires