Changeset 2400a77


Ignore:
Timestamp:
Nov 23, 2015 7:49:56 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5c4189ab
Parents:
302ec77
Message:

Remove unused USE_FAKE_CRYPTO

File:
1 edited

Legend:

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

    r302ec77 r2400a77  
    3939public class CryptixAESEngine extends AESEngine {
    4040    private final static CryptixRijndael_Algorithm _algo = new CryptixRijndael_Algorithm();
    41     private final static boolean USE_FAKE_CRYPTO = false;
    4241    // keys are now cached in the SessionKey objects
    4342    //private CryptixAESKeyCache _cache;
     
    104103            throw new IllegalArgumentException("Only lengths mod 16 are supported here");
    105104
    106         if (USE_FAKE_CRYPTO) {
    107             _log.warn("AES Crypto disabled!  Using trivial XOR");
    108             System.arraycopy(payload, payloadIndex, out, outIndex, length);
    109             return;
    110         }
    111 
    112105        if (USE_SYSTEM_AES && length >= MIN_SYSTEM_AES_LENGTH) {
    113106            try {
     
    156149            throw new IllegalArgumentException("out is too small (out.length=" + out.length
    157150                                               + " outIndex=" + outIndex + " length=" + length);
    158 
    159         if (USE_FAKE_CRYPTO) {
    160             _log.warn("AES Crypto disabled!  Using trivial XOR");
    161             System.arraycopy(payload, payloadIndex, out, outIndex, length);
    162             return ;
    163         }
    164151
    165152        if (USE_SYSTEM_AES && length >= MIN_SYSTEM_AES_LENGTH) {
Note: See TracChangeset for help on using the changeset viewer.