Lines Matching refs:useSHA256
48 static int checkRSA(RSAPublicKey key, boolean useSHA256) throws Exception { in checkRSA() argument
54 version = useSHA256 ? 3 : 1; in checkRSA()
56 version = useSHA256 ? 4 : 2; in checkRSA()
87 static int check(PublicKey key, boolean useSHA256) throws Exception { in check() argument
89 return checkRSA((RSAPublicKey) key, useSHA256); in check()
91 if (!useSHA256) { in check()
106 static String printRSA(RSAPublicKey key, boolean useSHA256) throws Exception { in printRSA() argument
107 int version = check(key, useSHA256); in printRSA()
221 static String print(PublicKey key, boolean useSHA256) throws Exception { in print() argument
223 return printRSA((RSAPublicKey) key, useSHA256); in print()
243 boolean useSHA256 = false; in main()
250 useSHA256 = false; in main()
252 useSHA256 = true; in main()
260 check(key, useSHA256); in main()
261 System.out.print(print(key, useSHA256)); in main()