Add (provisional) entries for RSASHA256 and RSASHA512.

git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@121 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
This commit is contained in:
David Blacka 2009-02-05 05:02:29 +00:00
parent 32b0f15b70
commit 49dfddb432

View File

@ -122,6 +122,17 @@ public class DnsKeyAlgorithm
// Load the (now) standard aliases // Load the (now) standard aliases
addAlias(6, "DSA-NSEC3-SHA1", DNSSEC.DSA); addAlias(6, "DSA-NSEC3-SHA1", DNSSEC.DSA);
addAlias(7, "RSA-NSEC3-SHA1", DNSSEC.RSASHA1); addAlias(7, "RSA-NSEC3-SHA1", DNSSEC.RSASHA1);
// And the hopefully-soon-to-be standard new RSA algorithms.
// see http://tools.ietf.org/wg/dnsext/draft-ietf-dnsext-dnssec-rsasha256
// NOTE: the algorithm numbers are educated guesses.
// Also NOTE: these algorithms aren't available in Java 1.4's sunprovider
// implementation.
addAlgorithm(8, new Entry("SHA256withRSA", RSA));
addMnemonic("RSASHA256", 8);
addAlgorithm(9, new Entry("SHA512withRSA", RSA));
addMnemonic("RSASHA512", 9);
} }
private void addAlgorithm(int algorithm, Entry entry) private void addAlgorithm(int algorithm, Entry entry)