@Test public void testToRsaSsaPkcs1Algo() throws Exception { assertEquals("SHA256withRSA", SubtleUtil.toRsaSsaPkcs1Algo(HashType.SHA256)); assertEquals("SHA512withRSA", SubtleUtil.toRsaSsaPkcs1Algo(HashType.SHA512)); try { SubtleUtil.toRsaSsaPkcs1Algo(HashType.SHA1); fail("Invalid hash, should have thrown exception"); } catch (GeneralSecurityException expected) { } }
public static String toRsaSsaPkcs1Algo(HashType hash) throws GeneralSecurityException { Validators.validateSignatureHash(hash); return hash + "withRSA"; }
SubtleUtil { public static String toRsaSsaPkcs1Algo(HashType hash) throws GeneralSecurityException { Validators.validateSignatureHash(hash); return hash + "withRSA"; } }
SubtleUtil { public static String toRsaSsaPkcs1Algo(HashType hash) throws GeneralSecurityException { Validators.validateSignatureHash(hash); return hash + "withRSA"; }  }
SubtleUtil { public static String toRsaSsaPkcs1Algo(HashType hash) throws GeneralSecurityException { Validators.validateSignatureHash(hash); return hash + "withRSA"; }  static String toEcdsaAlgo(HashType hash); static String toRsaSsaPkcs1Algo(HashType hash); static String toDigestAlgo(HashType hash); static boolean isAndroid(); static BigInteger bytes2Integer(byte[] bs); static byte[] integer2Bytes(BigInteger num, int intendedLength); static byte[] mgf1(byte[] mgfSeed, int maskLen, HashType mgfHash); static void putAsUnsigedInt(ByteBuffer buffer, long value); }
SubtleUtil { public static String toRsaSsaPkcs1Algo(HashType hash) throws GeneralSecurityException { Validators.validateSignatureHash(hash); return hash + "withRSA"; }  static String toEcdsaAlgo(HashType hash); static String toRsaSsaPkcs1Algo(HashType hash); static String toDigestAlgo(HashType hash); static boolean isAndroid(); static BigInteger bytes2Integer(byte[] bs); static byte[] integer2Bytes(BigInteger num, int intendedLength); static byte[] mgf1(byte[] mgfSeed, int maskLen, HashType mgfHash); static void putAsUnsigedInt(ByteBuffer buffer, long value);  }