org.bouncycastle.crypto.params
Class SM2KeyExchangePrivateParameters
java.lang.Object
|
+--org.bouncycastle.crypto.params.SM2KeyExchangePrivateParameters
- All Implemented Interfaces:
- CipherParameters
- public class SM2KeyExchangePrivateParameters
- extends java.lang.Object
- implements CipherParameters
Private parameters for an SM2 key exchange. The ephemeralPrivateKey is used to calculate the random point used in the algorithm.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SM2KeyExchangePrivateParameters
public SM2KeyExchangePrivateParameters(boolean initiator,
ECPrivateKeyParameters staticPrivateKey,
ECPrivateKeyParameters ephemeralPrivateKey)
isInitiator
public boolean isInitiator()
getStaticPrivateKey
public ECPrivateKeyParameters getStaticPrivateKey()
getStaticPublicPoint
public org.bouncycastle.math.ec.ECPoint getStaticPublicPoint()
getEphemeralPrivateKey
public ECPrivateKeyParameters getEphemeralPrivateKey()
getEphemeralPublicPoint
public org.bouncycastle.math.ec.ECPoint getEphemeralPublicPoint()