Class SM2KeyExchange

java.lang.Object
org.bouncycastle.crypto.agreement.SM2KeyExchange

public class SM2KeyExchange extends Object
SM2 Key Exchange protocol - based on https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
  • Constructor Details

    • SM2KeyExchange

      public SM2KeyExchange()
    • SM2KeyExchange

      public SM2KeyExchange(Digest digest)
  • Method Details

    • init

      public void init(CipherParameters privParam)
    • calculateKey

      public byte[] calculateKey(int kLen, CipherParameters pubParam)
    • calculateKeyWithConfirmation

      public byte[][] calculateKeyWithConfirmation(int kLen, byte[] confirmationTag, CipherParameters pubParam)