<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0-beta.98" />

SM2KeyExchange

public class SM2KeyExchange
SM2 Key Exchange protocol - based on https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
public SM2KeyExchange()

public SM2KeyExchange(IDigest digest)

public virtual byte[] CalculateKey(int kLen, ICipherParameters pubParam)

public virtual byte[][] CalculateKeyWithConfirmation(int kLen, byte[] confirmationTag, ICipherParameters pubParam)

public virtual void Init(ICipherParameters privParam)

protected virtual byte[] Kdf(ECPoint u, byte[] za, byte[] zb, int klen)