forked from I2P_Developers/i2p.i2p
* DatabaseLookupmessage:
- Add support for requesting an encrypted reply
* NetDB:
- Add support for encrypted DatabaseSearchReplyMessage and DatabaseStoreMessage
in response to a DatabaseLookupMessage
* PRNG: Cleanups using Collections.singletonMap()
* Router utils: New RemovableSingletonSet
* TransientSessionKeyManager:
- Support variable expiration for inbound tag sets
- Several efficiency improvements
* VersionComparator: Add static method, use most places
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package gnu.crypto.prng;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
@@ -77,8 +77,7 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
|
||||
/** the seed is only propogated once the prng is started with startup() */
|
||||
@Override
|
||||
public void seed(byte val[]) {
|
||||
Map props = new HashMap(1);
|
||||
props.put(SEED, val);
|
||||
Map props = Collections.singletonMap(SEED, val);
|
||||
init(props);
|
||||
//fillBlock();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ import java.io.Serializable;
|
||||
import java.security.InvalidKeyException;
|
||||
import java.security.MessageDigest;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
import net.i2p.crypto.CryptixAESKeyCache;
|
||||
@@ -131,8 +131,7 @@ public class FortunaStandalone extends BasePRNGStandalone implements Serializabl
|
||||
}
|
||||
|
||||
public void seed(byte val[]) {
|
||||
Map props = new HashMap(1);
|
||||
props.put(SEED, val);
|
||||
Map props = Collections.singletonMap(SEED, val);
|
||||
init(props);
|
||||
fillBlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user