1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-11-30 04:39:21 +01:00

ECDSA: add missing class variables for deterministic ECDSA

This commit is contained in:
terrafrost 2019-05-21 00:03:21 -05:00
parent 7d3b5a0c79
commit e06f733528

View File

@ -98,6 +98,27 @@ abstract class ECDSA extends AsymmetricKey
*/ */
private $curveName; private $curveName;
/**
* Curve Order
*
* Used for deterministic ECDSA
*
* @var \phpseclib\Math\BigInteger
*/
protected $q;
/**
* Alias for the private key
*
* Used for deterministic ECDSA. AsymmetricKey expects $x. I don't like x because
* with x you have x * the base point yielding an (x, y)-coordinate that is the
* public key. But the x is different depending on which side of the equal sign
* you're on. It's less ambiguous if you do dA * base point = (x, y)-coordinate.
*
* @var \phpseclib\Math\BigInteger
*/
protected $x;
/** /**
* Context * Context
* *