Class SM2KeyExchange


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

      • SM2KeyExchange

        public SM2KeyExchange()
      • SM2KeyExchange

        public SM2KeyExchange​(Digest digest)
    • Method Detail

      • calculateKey

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

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