|
||||||||||
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) Unused as a class, as the keys are cached in the SessionKey objects, but the static methods are used in FortunaStandalone.
Nested Class Summary | |
---|---|
static class |
CryptixAESKeyCache.KeyCacheEntry
all the data alloc'ed in a makeKey call |
Constructor Summary | |
---|---|
CryptixAESKeyCache()
|
Method Summary | |
---|---|
CryptixAESKeyCache.KeyCacheEntry |
acquireKey()
Deprecated. unused, keys are now cached in the SessionKey objects |
static CryptixAESKeyCache.KeyCacheEntry |
createNew()
|
void |
releaseKey(CryptixAESKeyCache.KeyCacheEntry key)
Deprecated. unused, keys are now cached in the SessionKey objects |
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 |