芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/mdanter/ecc/src/Crypto/Key/PrivateKey.php
adapter = $adapter; $this->generator = $generator; $this->secretMultiplier = $secretMultiplier; } /** * {@inheritDoc} * @see \Mdanter\Ecc\Crypto\Key\PrivateKeyInterface::getPublicKey() */ public function getPublicKey(): PublicKeyInterface { return new PublicKey($this->adapter, $this->generator, $this->generator->mul($this->secretMultiplier)); } /** * {@inheritDoc} * @see \Mdanter\Ecc\Crypto\Key\PrivateKeyInterface::getPoint() */ public function getPoint(): GeneratorPoint { return $this->generator; } /** * {@inheritDoc} * @see \Mdanter\Ecc\Crypto\Key\PrivateKeyInterface::getCurve() */ public function getCurve(): CurveFpInterface { return $this->generator->getCurve(); } /** * {@inheritDoc} * @see \Mdanter\Ecc\Crypto\Key\PrivateKeyInterface::getSecret() */ public function getSecret(): \GMP { return $this->secretMultiplier; } /** * {@inheritDoc} * @see \Mdanter\Ecc\Crypto\Key\PrivateKeyInterface::createExchange() */ public function createExchange(PublicKeyInterface $recipient = null): EcDHInterface { $ecdh = new EcDH($this->adapter); $ecdh ->setSenderKey($this) ->setRecipientKey($recipient); return $ecdh; } }