2017-25 © Pedro Peláez
 

library ecc

PHP Elliptic Curve Cryptography library

image

mdanter/ecc

PHP Elliptic Curve Cryptography library

  • Sunday, April 29, 2018
  • by thomaskerin
  • Repository
  • 25 Watchers
  • 194 Stars
  • 611,321 Installations
  • PHP
  • 39 Dependents
  • 4 Suggesters
  • 71 Forks
  • 16 Open issues
  • 31 Versions
  • 16 % 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

29/04 2018

dev-der-sig-ser-interface

dev-der-sig-ser-interface 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

28/04 2018

dev-wycheproof

dev-wycheproof 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

27/04 2018

dev-brainpool

dev-brainpool 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

27/04 2018

dev-phpstan-with-bool-cswap

dev-phpstan-with-bool-cswap 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

27/04 2018

dev-phpstan

dev-phpstan 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

12/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

29/01 2018

dev-readme-curve-names

dev-readme-curve-names 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

29/01 2018

dev-hmac-rng-fix-hash-length

dev-hmac-rng-fix-hash-length 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

25/12 2017

dev-remove-base-convert-string-type

dev-remove-base-convert-string-type 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

12/12 2017

dev-remove-tests-from-distribution

dev-remove-tests-from-distribution 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

12/12 2017

0.4.x-dev

0.4.9999999.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

12/12 2017

v0.4.5

0.4.5.0 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/10 2017

v0.5.0

0.5.0.0 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

09/10 2017

v0.4.4

0.4.4.0 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

22/09 2017

v0.4.3

0.4.3.0 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

22/09 2017

dev-0.4.3-notes

dev-0.4.3-notes 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

10/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

10/06 2017

dev-remove-readme-hhvm

dev-remove-readme-hhvm 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

10/06 2017

dev-bump-os

dev-bump-os 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

11/05 2017

dev-secp256k1-192-04

dev-secp256k1-192-04 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

11/05 2017

dev-check-invalid-point

dev-check-invalid-point 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

03/02 2017

dev-php7

dev-php7 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

04/01 2017

v0.4.2

0.4.2.0 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

22/11 2016

v0.4.1

0.4.1.0 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

v0.4.0

0.4.0.0 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

07/07 2014

v0.3.2

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

PHP Elliptic Curve Cryptography library

  Sources   Download

MIT

The Requires

 

The Development Requires

07/07 2014