Changeset 03cec7f


Ignore:
Timestamp:
Aug 30, 2014 8:46:16 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4a216c57
Parents:
1238001a
Message:

just check availability once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/SigType.java

    r1238001a r03cec7f  
    9696    private final String digestName, algoName, since;
    9797    private final AlgorithmParameterSpec params;
     98    private final boolean isAvail;
    9899
    99100    SigType(int cod, int pubLen, int privLen, int hLen, int sLen, SigAlgo baseAlgo,
     
    109110        params = pSpec;
    110111        since = supportedSince;
     112        isAvail = x_isAvailable();
    111113    }
    112114
     
    181183     */
    182184    public boolean isAvailable() {
     185        return isAvail;
     186    }
     187
     188    private boolean x_isAvailable() {
    183189        if (DSA_SHA1 == this)
    184190            return true;
Note: See TracChangeset for help on using the changeset viewer.