org.bouncycastle.crypto.agreement
Class SM2KeyExchange
java.lang.Object
|
+--org.bouncycastle.crypto.agreement.SM2KeyExchange
- public class SM2KeyExchange
- extends java.lang.Object
SM2 Key Exchange protocol - based on https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SM2KeyExchange
public SM2KeyExchange()
SM2KeyExchange
public SM2KeyExchange(Digest digest)
init
public void init(CipherParameters privParam)
calculateKey
public byte[] calculateKey(int kLen,
CipherParameters pubParam)
calculateKeyWithConfirmation
public byte[][] calculateKeyWithConfirmation(int kLen,
byte[] confirmationTag,
CipherParameters pubParam)