java.lang.Object
net.i2p.crypto.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)
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 ClassesModifier and TypeClassDescriptionstatic classContainer for AES round keys generated during key schedule expansion.Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic final CryptixAESKeyCache.KeyCacheEntryAllocate a key cache entry.
Field Details
KEYSIZE
BLOCKSIZE
ROUNDS
private static final int ROUNDSNumber of encryption rounds for the key size.BC
Constructor Details
CryptixAESKeyCache
public CryptixAESKeyCache()Constructor. The round-key cache itself is never instantiated - entries come from the staticcreateNew()- so a bare instance holds nothing.
Method Details
createNew
Allocate a key cache entry.- Returns:
- a new entry with no round keys populated yet