public class DHGEXServer extends AbstractDHServerKeyExchange
| Modifier and Type | Field and Description |
|---|---|
protected DHG |
dh |
protected byte |
expected |
protected DHFactory |
factory |
protected int |
max |
protected int |
min |
protected boolean |
oldRequest |
protected int |
prf |
sessione, f, h, hash, i_c, i_s, k, v_c, v_slog| Modifier | Constructor and Description |
|---|---|
protected |
DHGEXServer(DHFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected DHG |
getDH(BigInteger p,
BigInteger g) |
void |
init(AbstractSession s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
protected List<Moduli.DhGroup> |
loadModuliGroups() |
static KeyExchangeFactory |
newFactory(DHFactory factory) |
boolean |
next(Buffer buffer)
Process the next packet
|
getServerKeygetH, getHash, getK, getSessionprotected final DHFactory factory
protected DHG dh
protected int min
protected int prf
protected int max
protected byte expected
protected boolean oldRequest
protected DHGEXServer(DHFactory factory)
public static KeyExchangeFactory newFactory(DHFactory factory)
public void init(AbstractSession s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception
KeyExchangeinit in interface KeyExchangeinit in class AbstractDHServerKeyExchanges - the session using this algorithmv_s - the server identification stringv_c - the client identification stringi_s - the server key init packeti_c - the client key init packetException - if an error occurspublic boolean next(Buffer buffer) throws Exception
KeyExchangebuffer - the packetException - if an error occursprotected List<Moduli.DhGroup> loadModuliGroups() throws IOException
IOExceptionprotected DHG getDH(BigInteger p, BigInteger g) throws Exception
ExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.