mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 00:59:48 +01:00
CS adjustments
This commit is contained in:
parent
4eb9cbd0c8
commit
053910784e
@ -278,7 +278,7 @@ class Binary extends Base
|
|||||||
*
|
*
|
||||||
* Not supported because it is covered by patents.
|
* Not supported because it is covered by patents.
|
||||||
* Quoting https://www.openssl.org/docs/man1.1.0/apps/ecparam.html ,
|
* Quoting https://www.openssl.org/docs/man1.1.0/apps/ecparam.html ,
|
||||||
*
|
*
|
||||||
* "Due to patent issues the compressed option is disabled by default for binary curves
|
* "Due to patent issues the compressed option is disabled by default for binary curves
|
||||||
* and can be enabled by defining the preprocessor macro OPENSSL_EC_BIN_PT_COMP at
|
* and can be enabled by defining the preprocessor macro OPENSSL_EC_BIN_PT_COMP at
|
||||||
* compile time."
|
* compile time."
|
||||||
@ -370,7 +370,7 @@ class Binary extends Base
|
|||||||
if (isset($p[2])) {
|
if (isset($p[2])) {
|
||||||
return $p;
|
return $p;
|
||||||
}
|
}
|
||||||
|
|
||||||
$p[2] = clone $this->one;
|
$p[2] = clone $this->one;
|
||||||
$p['fresh'] = true;
|
$p['fresh'] = true;
|
||||||
return $p;
|
return $p;
|
||||||
|
@ -78,7 +78,6 @@ abstract class libsodium
|
|||||||
$components['QA'] = isset($public) ?
|
$components['QA'] = isset($public) ?
|
||||||
self::extractPoint($public, $curve) :
|
self::extractPoint($public, $curve) :
|
||||||
$curve->multiplyPoint($curve->getBasePoint(), $components['dA']);
|
$curve->multiplyPoint($curve->getBasePoint(), $components['dA']);
|
||||||
|
|
||||||
|
|
||||||
return $components;
|
return $components;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user