Package net.i2p.crypto
Class CryptixAESKeyCache
java.lang.Object
net.i2p.crypto.CryptixAESKeyCache
public final class CryptixAESKeyCache extends Object
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)
Not for external use, not a public API.
Unused as a class, as the keys are cached in the SessionKey objects,
but the static methods are used in FortunaStandalone.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CryptixAESKeyCache.KeyCacheEntry
all the data alloc'ed in a makeKey call -
Constructor Summary
Constructors Constructor Description CryptixAESKeyCache()
Deprecated. -
Method Summary
Modifier and Type Method Description CryptixAESKeyCache.KeyCacheEntry
acquireKey()
Deprecated.unused, keys are now cached in the SessionKey objectsstatic CryptixAESKeyCache.KeyCacheEntry
createNew()
void
releaseKey(CryptixAESKeyCache.KeyCacheEntry key)
Deprecated.unused, keys are now cached in the SessionKey objects
-
Constructor Details
-
CryptixAESKeyCache
Deprecated.
-
-
Method Details
-
acquireKey
Deprecated.unused, keys are now cached in the SessionKey objectsGet the next available structure, either from the cache or a brand new one -
releaseKey
Deprecated.unused, keys are now cached in the SessionKey objectsPut this structure back onto the available cache for reuse -
createNew
-