Use the RFC 5702 algorithm identifiers

git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@182 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
This commit is contained in:
David Blacka 2009-11-03 02:23:57 +00:00
parent f09d75453c
commit 2bd2bef727

View File

@ -126,16 +126,14 @@ public class DnsKeyAlgorithm
addMnemonic("NSEC3DSA", DNSSEC.DSA_NSEC3_SHA1); addMnemonic("NSEC3DSA", DNSSEC.DSA_NSEC3_SHA1);
addMnemonic("NSEC3RSASHA1", DNSSEC.RSA_NSEC3_SHA1); addMnemonic("NSEC3RSASHA1", DNSSEC.RSA_NSEC3_SHA1);
// And the hopefully-soon-to-be standard new RSA algorithms. // Algorithms added by RFC 5702.
// see http://tools.ietf.org/wg/dnsext/draft-ietf-dnsext-dnssec-rsasha256 // NOTE: these algorithms aren't available in Java 1.4's sunprovider
// NOTE: the algorithm numbers are educated guesses.
// Also NOTE: these algorithms aren't available in Java 1.4's sunprovider
// implementation (but are in java 1.5's and later). // implementation (but are in java 1.5's and later).
addAlgorithm(8, new Entry("SHA256withRSA", RSA)); addAlgorithm(8, new Entry("SHA256withRSA", RSA));
addMnemonic("RSASHA256", 8); addMnemonic("RSASHA256", 8);
addAlgorithm(9, new Entry("SHA512withRSA", RSA)); addAlgorithm(10, new Entry("SHA512withRSA", RSA));
addMnemonic("RSASHA512", 9); addMnemonic("RSASHA512", 10);
} }
private void addAlgorithm(int algorithm, Entry entry) private void addAlgorithm(int algorithm, Entry entry)