connectbot/sshlib

View on GitHub
src/main/java/com/trilead/ssh2/crypto/KeyMaterial.java

Summary

Maintainability
A
3 hrs
Test Coverage
A
100%

Method create has 10 arguments (exceeds 4 allowed). Consider refactoring.
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)
Severity: Major
Found in src/main/java/com/trilead/ssh2/crypto/KeyMaterial.java - About 1 hr to fix

    Method calculateKey has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private static byte[] calculateKey(HashForSSH2Types sh, BigInteger K, byte[] H, byte type, byte[] SessionID,
                int keyLength)
        {
            byte[] res = new byte[keyLength];
    
    
    Severity: Minor
    Found in src/main/java/com/trilead/ssh2/crypto/KeyMaterial.java - About 1 hr to fix

      Method calculateKey has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          private static byte[] calculateKey(HashForSSH2Types sh, BigInteger K, byte[] H, byte type, byte[] SessionID,
                  int keyLength)
      Severity: Minor
      Found in src/main/java/com/trilead/ssh2/crypto/KeyMaterial.java - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status