| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ECKeyParameters | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private BigInteger | |
| public BigInteger[] | generateSignature(byte[]
the digest to be signed. digest)Implements org. generate a signature for the given message using the key we were initialised with. |
| public BigInteger | getOrder()
Implements org. Get the order of the group that the r, s values in signatures belong to. |
| public byte[] | Returns: null if r and s are not valid.Returns the data used for the signature generation, assuming the public key passed to init() is correct. |
| public void | init(boolean
true if we are generating a signature, false
for verification or if we want to use the signer for message recovery. forSigning, CipherParameters key parameters for signature generation. param)Implements org. Initialise the signer. |
| public boolean | verifySignature(byte[]
the digest to be verified. digest, BigInteger the r value of the signature. r, BigInteger the s value of the signature. s)Implements org. return true if the value r and s represent a signature for the message passed in. Generally, the order of the curve should be at least as long as the hash of the message of interest, and with ECNR, it *must* be at least as long. |
| forSigning | back to summary |
|---|---|
| private boolean forSigning | |
| key | back to summary |
|---|---|
| private ECKeyParameters key | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| ECNRSigner | back to summary |
|---|---|
| public ECNRSigner() | |
| extractT | back to summary |
|---|---|
| private BigInteger extractT(ECPublicKeyParameters pubKey, BigInteger r, BigInteger s) | |
| generateSignature | back to summary |
|---|---|
| public BigInteger[] generateSignature(byte[] digest) Implements org. generate a signature for the given message using the key we were initialised with. Generally, the order of the curve should be at least as long as the hash of the message of interest, and with ECNR it *must* be at least as long.
| |
| getOrder | back to summary |
|---|---|
| public BigInteger getOrder() Implements org. Doc from org. Get the order of the group that the r, s values in signatures belong to. | |
| getRecoveredMessage | back to summary |
|---|---|
| public byte[] getRecoveredMessage(BigInteger r, BigInteger s) Returns the data used for the signature generation, assuming the public key passed to init() is correct.
| |
| init | back to summary |
|---|---|
| public void init(boolean forSigning, CipherParameters param) Implements org. Initialise the signer.
| |
| verifySignature | back to summary |
|---|---|
| public boolean verifySignature(byte[] digest, BigInteger r, BigInteger s) Implements org. return true if the value r and s represent a signature for the message passed in. Generally, the order of the curve should be at least as long as the hash of the message of interest, and with ECNR, it *must* be at least as long. But just in case the signer applied mod(n) to the longer digest, this implementation will apply mod(n) during verification.
| |