public abstract class KeyExchangeBase extends java.lang.Object implements KeyExchange
| Modifier and Type | Field and Description |
|---|---|
protected Digest |
digest |
protected byte[] |
H |
protected java.security.PublicKey |
hostKey |
protected Transport |
trans |
| Constructor and Description |
|---|
KeyExchangeBase(Digest digest) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getH() |
Digest |
getHash()
The message digest used by this key exchange algorithm.
|
java.security.PublicKey |
getHostKey() |
void |
init(Transport trans,
java.lang.String V_S,
java.lang.String V_C,
byte[] I_S,
byte[] I_C)
Initialize the key exchange algorithm.
|
protected Buffer.PlainBuffer |
initializedBuffer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetK, nextprotected Transport trans
protected final Digest digest
protected byte[] H
protected java.security.PublicKey hostKey
public KeyExchangeBase(Digest digest)
public void init(Transport trans, java.lang.String V_S, java.lang.String V_C, byte[] I_S, byte[] I_C) throws java.security.GeneralSecurityException, TransportException
KeyExchangeinit in interface KeyExchangetrans - the transportV_S - the server identification stringV_C - the client identification stringI_S - the server key init packetI_C - the client key init packetjava.security.GeneralSecurityExceptionTransportException - if there is an error sending a packetprotected Buffer.PlainBuffer initializedBuffer()
public byte[] getH()
getH in interface KeyExchangepublic Digest getHash()
KeyExchangegetHash in interface KeyExchangepublic java.security.PublicKey getHostKey()
getHostKey in interface KeyExchange