Skip to content

Commit

Permalink
[dnssec] Add support for SHA-384 as DNSSEC DS RR digest algorithm
Browse files Browse the repository at this point in the history
Fixes #139.
  • Loading branch information
Flowdalic committed Jun 19, 2024
1 parent 86b0dcc commit a523c88
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ private AlgorithmMap() {
throw new DnssecValidatorInitializationException("SHA-256 is mandatory", e);
}

try {
dsDigestMap.put(DigestAlgorithm.SHA384, new JavaSecDigestCalculator("SHA-384"));
} catch (NoSuchAlgorithmException e) {
// SHA-384 is OPTIONAL
LOGGER.log(Level.FINE, "Platform does not support SHA-384", e);
}

try {
signatureMap.put(SignatureAlgorithm.RSAMD5, new RsaSignatureVerifier("MD5withRSA"));
} catch (NoSuchAlgorithmException e) {
Expand Down

0 comments on commit a523c88

Please sign in to comment.