Router: Remove unused test support for AES disabled

This commit is contained in:
zzz
2019-03-14 15:19:23 +00:00
parent 0b5a36d5eb
commit 7511de68a4
3 changed files with 4 additions and 14 deletions

View File

@ -694,10 +694,7 @@ public class I2PAppContext {
private void initializeAESEngine() {
synchronized (_lock7) {
if (_AESEngine == null) {
if ("off".equals(getProperty("i2p.encryption", "on")))
_AESEngine = new AESEngine(this);
else
_AESEngine = new CryptixAESEngine(this);
_AESEngine = new CryptixAESEngine(this);
}
_AESEngineInitialized = true;
}

View File

@ -18,15 +18,14 @@ import net.i2p.util.SimpleByteCache;
/**
* Dummy wrapper for AES cipher operation.
* Warning -
* most methods UNUSED unless i2p.encryption = off
* Warning - most methods UNUSED.
* See CryptixAESEngine overrides for the real thing.
*/
public class AESEngine {
protected final Log _log;
protected final I2PAppContext _context;
public AESEngine(I2PAppContext ctx) {
protected AESEngine(I2PAppContext ctx) {
_context = ctx;
_log = _context.logManager().getLog(getClass());
if (getClass().equals(AESEngine.class))