Public Member Functions | |
__construct (DiffieHellmanParameters $parameters) | |
setPrivate (BigInteger $private) | |
getPrivate () | |
setPublic (BigInteger $public) | |
getPublic () | |
makeSharedKey (BigInteger $otherSitePublic) | |
Static Public Member Functions | |
static | create (DiffieHellmanParameters $parameters) |
static | generate (DiffieHellmanParameters $parameters, RandomSource $randomSource) |
Private Attributes | |
$private = null | |
$public = null | |
$parameters = null |
Definition at line 17 of file DiffieHellmanKeyPair.class.php.
DiffieHellmanKeyPair::__construct | ( | DiffieHellmanParameters $ | parameters | ) |
Definition at line 23 of file DiffieHellmanKeyPair.class.php.
static DiffieHellmanKeyPair::create | ( | DiffieHellmanParameters $ | parameters | ) | [static] |
Definition at line 31 of file DiffieHellmanKeyPair.class.php.
static DiffieHellmanKeyPair::generate | ( | DiffieHellmanParameters $ | parameters, | |
RandomSource $ | randomSource | |||
) | [static] |
Definition at line 39 of file DiffieHellmanKeyPair.class.php.
References DiffieHellmanParameters::getGen(), and DiffieHellmanParameters::getModulus().
Referenced by OpenIdConsumer::associate().
DiffieHellmanKeyPair::getPrivate | ( | ) |
Implements KeyPair.
Definition at line 73 of file DiffieHellmanKeyPair.class.php.
DiffieHellmanKeyPair::getPublic | ( | ) |
Implements KeyPair.
Definition at line 90 of file DiffieHellmanKeyPair.class.php.
DiffieHellmanKeyPair::makeSharedKey | ( | BigInteger $ | otherSitePublic | ) |
Definition at line 98 of file DiffieHellmanKeyPair.class.php.
References Assert::brothers(), and BigInteger::modPow().
DiffieHellmanKeyPair::setPrivate | ( | BigInteger $ | private | ) |
Definition at line 64 of file DiffieHellmanKeyPair.class.php.
DiffieHellmanKeyPair::setPublic | ( | BigInteger $ | public | ) |
Definition at line 81 of file DiffieHellmanKeyPair.class.php.
DiffieHellmanKeyPair::$parameters = null [private] |
Definition at line 21 of file DiffieHellmanKeyPair.class.php.
DiffieHellmanKeyPair::$private = null [private] |
Definition at line 19 of file DiffieHellmanKeyPair.class.php.
DiffieHellmanKeyPair::$public = null [private] |
Definition at line 20 of file DiffieHellmanKeyPair.class.php.