public class

KeyMaterial

extends Object
java.lang.Object
   ↳ com.trilead.ssh2.crypto.KeyMaterial

Class Overview

Establishes key material for iv/key/mac (both directions).

Summary

Fields
public byte[] enc_key_client_to_server
public byte[] enc_key_server_to_client
public byte[] initial_iv_client_to_server
public byte[] initial_iv_server_to_client
public byte[] integrity_key_client_to_server
public byte[] integrity_key_server_to_client
Public Constructors
KeyMaterial()
Public Methods
static KeyMaterial create(String hashType, byte[] H, BigInteger K, byte[] SessionID, int keyLengthCS, int blockSizeCS, int macLengthCS, int keyLengthSC, int blockSizeSC, int macLengthSC)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public byte[] enc_key_client_to_server

public byte[] enc_key_server_to_client

public byte[] initial_iv_client_to_server

public byte[] initial_iv_server_to_client

public byte[] integrity_key_client_to_server

public byte[] integrity_key_server_to_client

Public Constructors

public KeyMaterial ()

Public Methods

public static KeyMaterial create (String hashType, byte[] H, BigInteger K, byte[] SessionID, int keyLengthCS, int blockSizeCS, int macLengthCS, int keyLengthSC, int blockSizeSC, int macLengthSC)

Parameters
hashType
H
K
SessionID
keyLengthCS
blockSizeCS
macLengthCS
keyLengthSC
blockSizeSC
macLengthSC