Changeset fdff5ec


Ignore:
Timestamp:
Nov 20, 2016 4:32:38 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
bbb9218
Parents:
97af7d0
Message:

Router: Change default family sig type to EdDSA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/crypto/FamilyKeyCrypto.java

    r97af7d0 rfdff5ec  
    6363    // Note that we can't use RSA here, as the b64 sig would exceed the 255 char limit for a Mapping
    6464    // Note that we can't use EdDSA here, as keystore doesn't know how, and encoding/decoding is unimplemented
    65     private static final String DEFAULT_KEY_ALGORITHM = SigType.ECDSA_SHA256_P256.isAvailable() ? "EC" : "DSA";
    66     private static final int DEFAULT_KEY_SIZE = SigType.ECDSA_SHA256_P256.isAvailable() ? 256 : 1024;
     65    //private static final String DEFAULT_KEY_ALGORITHM = SigType.ECDSA_SHA256_P256.isAvailable() ? "EC" : "DSA";
     66    //private static final int DEFAULT_KEY_SIZE = SigType.ECDSA_SHA256_P256.isAvailable() ? 256 : 1024;
     67    private static final String DEFAULT_KEY_ALGORITHM = "EdDSA";
     68    private static final int DEFAULT_KEY_SIZE = 256;
    6769    private static final String KS_DIR = "keystore";
    6870    private static final String CERT_DIR = "certificates/family";
Note: See TracChangeset for help on using the changeset viewer.