Comment fixed to meet standards
parent
87bc790fdb
commit
2555020b95
|
@ -157,9 +157,9 @@ public class CryptoBenchmark {
|
||||||
String displayProvider = provider;
|
String displayProvider = provider;
|
||||||
if (isRSAOperation) {
|
if (isRSAOperation) {
|
||||||
if (operation.contains("key gen")) {
|
if (operation.contains("key gen")) {
|
||||||
displayProvider = "SunRsaSign"; // Key generation uses SunRsaSign
|
displayProvider = "SunRsaSign"; /* Key generation uses SunRsaSign */
|
||||||
} else {
|
} else {
|
||||||
displayProvider = "SunJCE"; // Public/private operations use SunJCE
|
displayProvider = "SunJCE"; /* Public/private operations use SunJCE */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ public class CryptoBenchmark {
|
||||||
results.add(new BenchmarkResult(providerName, cipherName + " dec", decryptThroughput));
|
results.add(new BenchmarkResult(providerName, cipherName + " dec", decryptThroughput));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper method to check if an algorithm is supported by the provider
|
/* Helper method to check if an algorithm is supported by the provider */
|
||||||
private static boolean isAlgorithmSupported(String algorithm, String providerName) {
|
private static boolean isAlgorithmSupported(String algorithm, String providerName) {
|
||||||
try {
|
try {
|
||||||
MessageDigest.getInstance(algorithm, providerName);
|
MessageDigest.getInstance(algorithm, providerName);
|
||||||
|
|
Loading…
Reference in New Issue