Comment fixed to meet standards

pull/106/head
Jack Tjaden 2025-03-28 13:48:40 -06:00
parent 87bc790fdb
commit 2555020b95
1 changed files with 3 additions and 3 deletions

View File

@ -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);