| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Digest | |
| private ECKeyParameters | |
| private ECDomainParameters | |
| private final DSAEncoding | |
| private final DSAKCalculator | |
| private ECPoint | |
| private int | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| protected BigInteger | |
| private void | |
| protected ECMultiplier | |
| private byte[] | |
| public byte[] | generateSignature()
Implements org. generate a signature for the message we've been loaded with using the key we were initialised with. |
| private byte[] | |
| public void | init(boolean
true if for signing, false otherwise forSigning, CipherParameters necessary parameters. param)Implements org. Initialise the signer for signing or verification. |
| public void | |
| public void | update(byte b)
Implements org. update the internal digest with the byte b |
| public void | update(byte[] in, int off, int len)
Implements org. update the internal digest with the byte array in |
| public boolean | verifySignature(byte[] signature)
Implements org. return true if the internal state represents the signature described in the passed in array. |
| private boolean |
| digest | back to summary |
|---|---|
| private final Digest digest | |
| ecKey | back to summary |
|---|---|
| private ECKeyParameters ecKey | |
| ecParams | back to summary |
|---|---|
| private ECDomainParameters ecParams | |
| encoding | back to summary |
|---|---|
| private final DSAEncoding encoding | |
| kCalculator | back to summary |
|---|---|
| private final DSAKCalculator kCalculator | |
| pubPoint | back to summary |
|---|---|
| private ECPoint pubPoint | |
| state | back to summary |
|---|---|
| private int state | |
| z | back to summary |
|---|---|
| private byte[] z | |
| SM2Signer | back to summary |
|---|---|
| public SM2Signer() | |
| SM2Signer | back to summary |
|---|---|
| public SM2Signer(Digest digest) | |
| SM2Signer | back to summary |
|---|---|
| public SM2Signer(DSAEncoding encoding) | |
| SM2Signer | back to summary |
|---|---|
| public SM2Signer(DSAEncoding encoding, Digest digest) | |
| addFieldElement | back to summary |
|---|---|
| private void addFieldElement(Digest digest, ECFieldElement v) | |
| addUserID | back to summary |
|---|---|
| private void addUserID(Digest digest, byte[] userID) | |
| calculateE | back to summary |
|---|---|
| protected BigInteger calculateE(BigInteger n, byte[] message) | |
| checkData | back to summary |
|---|---|
| private void checkData() | |
| createBasePointMultiplier | back to summary |
|---|---|
| protected ECMultiplier createBasePointMultiplier() | |
| digestDoFinal | back to summary |
|---|---|
| private byte[] digestDoFinal() | |
| generateSignature | back to summary |
|---|---|
| public byte[] generateSignature() throws CryptoException Implements org. Doc from org. generate a signature for the message we've been loaded with using the key we were initialised with. | |
| getZ | back to summary |
|---|---|
| private byte[] getZ(byte[] userID) | |
| init | back to summary |
|---|---|
| public void init(boolean forSigning, CipherParameters param) Implements org. Doc from org. Initialise the signer for signing or verification.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the internal state | |
| update | back to summary |
|---|---|
| public void update(byte b) Implements org. Doc from org. update the internal digest with the byte b | |
| update | back to summary |
|---|---|
| public void update(byte[] in, int off, int len) Implements org. Doc from org. update the internal digest with the byte array in | |
| verifySignature | back to summary |
|---|---|
| public boolean verifySignature(byte[] signature) Implements org. Doc from org. return true if the internal state represents the signature described in the passed in array. | |
| verifySignature | back to summary |
|---|---|
| private boolean verifySignature(BigInteger r, BigInteger s) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| DATA | back to summary |
|---|---|
| pack-priv static final int DATA | |
| INIT | back to summary |
|---|---|
| pack-priv static final int INIT | |
| UNINITIALIZED | back to summary |
|---|---|
| pack-priv static final int UNINITIALIZED | |
| State | back to summary |
|---|---|
| private State() | |