docs: public byte[] getAnsiHash ( CIFSContext tc, byte[] chlng ) throws GeneralSecurityException {
          switch ( tc.getConfig().getLanManCompatibility() ) {
          case 0:
          case 1:
              return NtlmUtil.getPreNTLMResponse(tc, this.password, chlng);
          case 2:
              return NtlmUtil.getNTLMResponse(this.password, chlng);
          case 3:
          case 4:
          case 5:
              if ( this.clientChallenge == null ) {
                  this.clientChallenge = new byte[8];
                  tc.getConfig().getRandom().nextBytes(this.clientChallenge);
              }
              return NtlmUtil.getLMv2Response(this.domain, this.username, this.password, chlng, this.clientChallenge);
          default:
              return NtlmUtil.getPreNTLMResponse(tc, this.password, chlng);
          }
      }