Skip to content

Commit

Permalink
Fix opsFlagMask log message
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Dec 21, 2023
1 parent 8444e0e commit 7db1a96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public static KeyPair generateRSAKeyPair(CryptoToken token, int keysize, boolean
}
if(usages_mask!=null) {
String usageMaskList = String.join(",", Stream.of(usages_mask).map(org.mozilla.jss.crypto.KeyPairGeneratorSpi.Usage::name).toArray(String[]::new));
logger.info("CryptoUtil: generateRSAKeyPair with key usage {}", usageMaskList);
logger.info("CryptoUtil: generateRSAKeyPair with key usage mask {}", usageMaskList);
}
kg.setKeyPairUsages(usages, usages_mask);

Expand Down Expand Up @@ -744,7 +744,7 @@ public static KeyPair generateECCKeyPair(
}
if(usage_mask!=null) {
String usageMaskList = String.join(",", Stream.of(usage_mask).map(org.mozilla.jss.crypto.KeyPairGeneratorSpi.Usage::name).toArray(String[]::new));
logger.info("CryptoUtil: generateECCKeyPair with key usage {}", usageMaskList);
logger.info("CryptoUtil: generateECCKeyPair with key usage mask {}", usageMaskList);
}
keygen.setKeyPairUsages(usage_ops, usage_mask);
keygen.initialize(keysize);
Expand Down

0 comments on commit 7db1a96

Please sign in to comment.