Class SM2KeyExchange
java.lang.Object
org.bouncycastle.crypto.agreement.SM2KeyExchange
SM2 Key Exchange protocol - based on https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
calculateKey
(int kLen, CipherParameters pubParam) byte[][]
calculateKeyWithConfirmation
(int kLen, byte[] confirmationTag, CipherParameters pubParam) void
init
(CipherParameters privParam)
-
Constructor Details
-
SM2KeyExchange
public SM2KeyExchange() -
SM2KeyExchange
-
-
Method Details
-
init
-
calculateKey
-
calculateKeyWithConfirmation
public byte[][] calculateKeyWithConfirmation(int kLen, byte[] confirmationTag, CipherParameters pubParam)
-