forked from I2P_Developers/i2p.i2p
Router: Remove unused test support for AES disabled
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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))
|
||||
|
Reference in New Issue
Block a user