code: public static String makeSigAlg(String digAlg, String encAlg) {
          digAlg = digAlg.replace("-", "").toUpperCase(Locale.ENGLISH);
          if (digAlg.equalsIgnoreCase("SHA")) digAlg = "SHA1";
  
          encAlg = encAlg.toUpperCase(Locale.ENGLISH);
          if (encAlg.equals("EC")) encAlg = "ECDSA";
  
          return digAlg + "with" + encAlg;
      }
docs: Creates a signature algorithm name from a digest algorithm
  name and a encryption algorithm name.