public interface ECDH
Jsch.setConfig("ecdh-sha2-nistp")
.}Modifier and Type | Method and Description |
---|---|
byte[] |
getQ()
Retrieves the public key (i.e. an elliptic curve point) to be sent to the remote side.
|
byte[] |
getSecret(byte[] r,
byte[] s)
calculates and returns the shared secret for this key exchange.
|
void |
init(int size)
Initializes this instance for key pairs of a specific size.
|
boolean |
validate(byte[] r,
byte[] s)
Validates a public key (i.e. an elliptic curve point) sent by the remote side.
|
void init(int size) throws Exception
Exception
byte[] getSecret(byte[] r, byte[] s) throws Exception
r
- the x coordinate of the remote partner's point, encoded as a byte[].s
- the y coordinate of the remote partner's point, encoded as a byte[].Exception
- if anything goes wrong.byte[] getQ() throws Exception
Exception
- if anything goes wrong.boolean validate(byte[] r, byte[] s) throws Exception
r
- the x coordinate of the point, encoded as a byte[].s
- the y coordinate of the point, encoded as a byte[].Exception
- if anything goes wrong.This is an inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.