Update 'DJB' type not to conlict with NIST type 0x04.

This commit is contained in:
Moxie Marlinspike 2013-11-18 10:46:16 -08:00
parent c38a8aa699
commit 07b7696937

View File

@ -23,7 +23,7 @@ public class Curve {
public static final int NIST_TYPE = 0x02; public static final int NIST_TYPE = 0x02;
private static final int NIST_TYPE2 = 0x03; private static final int NIST_TYPE2 = 0x03;
public static final int DJB_TYPE = 0x04; public static final int DJB_TYPE = 0x05;
public static ECKeyPair generateKeyPairForType(int keyType) { public static ECKeyPair generateKeyPairForType(int keyType) {
if (keyType == DJB_TYPE) { if (keyType == DJB_TYPE) {