src/main/java/com/trilead/ssh2/crypto/KeyMaterial.java
Method create
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static KeyMaterial create(String hashAlgo, byte[] H, BigInteger K, byte[] SessionID, int keyLengthCS,
int blockSizeCS, int macLengthCS, int keyLengthSC, int blockSizeSC, int macLengthSC)
Method calculateKey
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static byte[] calculateKey(HashForSSH2Types sh, BigInteger K, byte[] H, byte type, byte[] SessionID,
int keyLength)
{
byte[] res = new byte[keyLength];
Method calculateKey
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static byte[] calculateKey(HashForSSH2Types sh, BigInteger K, byte[] H, byte type, byte[] SessionID,
int keyLength)