|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.crypto.CryptixAESKeyCache
public final class CryptixAESKeyCache
Cache the objects used in CryptixRijndael_Algorithm.makeKey to reduce memory churn. The KeyCacheEntry should be held onto as long as the data referenced in it is needed (which often is only one or two lines of code)
Nested Class Summary | |
---|---|
static class |
CryptixAESKeyCache.KeyCacheEntry
all the data alloc'ed in a makeKey call |
Constructor Summary | |
---|---|
CryptixAESKeyCache()
|
Method Summary | |
---|---|
CryptixAESKeyCache.KeyCacheEntry |
acquireKey()
Get the next available structure, either from the cache or a brand new one |
static CryptixAESKeyCache.KeyCacheEntry |
createNew()
|
void |
releaseKey(CryptixAESKeyCache.KeyCacheEntry key)
Put this structure back onto the available cache for reuse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CryptixAESKeyCache()
Method Detail |
---|
public final CryptixAESKeyCache.KeyCacheEntry acquireKey()
public final void releaseKey(CryptixAESKeyCache.KeyCacheEntry key)
public static final CryptixAESKeyCache.KeyCacheEntry createNew()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |