Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`SM2KeyExchange()`
`SM2KeyExchange(Digest digest)`

Method Summary
`byte[]` | `calculateKey(int kLen, CipherParameters pubParam)`
`byte[][]` | `calculateKeyWithConfirmation(int kLen, byte[] confirmationTag, CipherParameters pubParam)`
`void` | `init(CipherParameters privParam)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SM2KeyExchange

    public SM2KeyExchange()

### SM2KeyExchange

    public SM2KeyExchange(Digest digest)

Method Detail

### init

    public void init(CipherParameters privParam)

### calculateKey

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

### calculateKeyWithConfirmation

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

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD