Package org.bouncycastle.crypto.params
Class SM2KeyExchangePrivateParameters
java.lang.Object
org.bouncycastle.crypto.params.SM2KeyExchangePrivateParameters
- All Implemented Interfaces:
CipherParameters
Private parameters for an SM2 key exchange. The ephemeralPrivateKey is used to calculate the random point used in the algorithm.
-
Constructor Summary
ConstructorsConstructorDescriptionSM2KeyExchangePrivateParameters
(boolean initiator, ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey) -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Constructor Details
-
SM2KeyExchangePrivateParameters
public SM2KeyExchangePrivateParameters(boolean initiator, ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey)
-
-
Method Details
-
isInitiator
public boolean isInitiator() -
getStaticPrivateKey
-
getStaticPublicPoint
-
getEphemeralPrivateKey
-
getEphemeralPublicPoint
-