| Modifier and Type | Field and Description |
|---|---|
| private final Digest | |
| private ECDomainParameters | |
| private ECPrivateKeyParameters | |
| private ECPoint | |
| private boolean | |
| private ECPrivateKeyParameters | |
| private ECPoint | |
| private byte[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private byte[] | |
| public byte[] | |
| public byte[][] | |
| private ECPoint | |
| private byte[] | |
| private byte[] | |
| public void | |
| private byte[] | |
| private BigInteger | |
| private byte[] | |
| private byte[] |
| digest | back to summary |
|---|---|
| private final Digest digest | |
| ecParams | back to summary |
|---|---|
| private ECDomainParameters ecParams | |
| ephemeralKey | back to summary |
|---|---|
| private ECPrivateKeyParameters ephemeralKey | |
| ephemeralPubPoint | back to summary |
|---|---|
| private ECPoint ephemeralPubPoint | |
| initiator | back to summary |
|---|---|
| private boolean initiator | |
| staticKey | back to summary |
|---|---|
| private ECPrivateKeyParameters staticKey | |
| staticPubPoint | back to summary |
|---|---|
| private ECPoint staticPubPoint | |
| userID | back to summary |
|---|---|
| private byte[] userID | |
| w | back to summary |
|---|---|
| private int w | |
| SM2KeyExchange | back to summary |
|---|---|
| public SM2KeyExchange() | |
| SM2KeyExchange | back to summary |
|---|---|
| public SM2KeyExchange(Digest digest) | |
| addFieldElement | back to summary |
|---|---|
| private void addFieldElement(Digest digest, ECFieldElement v) | |
| addUserID | back to summary |
|---|---|
| private void addUserID(Digest digest, byte[] userID) | |
| calculateInnerHash | back to summary |
|---|---|
| private byte[] calculateInnerHash(Digest digest, ECPoint u, byte[] za, byte[] zb, ECPoint p1, ECPoint p2) | |
| calculateKey | back to summary |
|---|---|
| public byte[] calculateKey(int kLen, CipherParameters pubParam) | |
| calculateKeyWithConfirmation | back to summary |
|---|---|
| public byte[][] calculateKeyWithConfirmation(int kLen, byte[] confirmationTag, CipherParameters pubParam) | |
| calculateU | back to summary |
|---|---|
| private ECPoint calculateU(SM2KeyExchangePublicParameters otherPub) | |
| digestDoFinal | back to summary |
|---|---|
| private byte[] digestDoFinal() | |
| getZ | back to summary |
|---|---|
| private byte[] getZ(Digest digest, byte[] userID, ECPoint pubPoint) | |
| init | back to summary |
|---|---|
| public void init(CipherParameters privParam) | |
| kdf | back to summary |
|---|---|
| private byte[] kdf(ECPoint u, byte[] za, byte[] zb, int klen) | |
| reduce | back to summary |
|---|---|
| private BigInteger reduce(BigInteger x) | |
| S1 | back to summary |
|---|---|
| private byte[] S1(Digest digest, ECPoint u, byte[] inner) | |
| S2 | back to summary |
|---|---|
| private byte[] S2(Digest digest, ECPoint u, byte[] inner) | |