anon.client.crypto
Class KeyPool

java.lang.Object
  extended by anon.client.crypto.KeyPool
All Implemented Interfaces:
java.lang.Runnable

public final class KeyPool
extends java.lang.Object
implements java.lang.Runnable


Nested Class Summary
private  class KeyPool.KeyList
           
 
Field Summary
private  KeyPool.KeyList aktKey
           
private  int keySize
           
private  java.lang.Object l1
           
private  java.lang.Object l2
           
private static KeyPool m_KeyPool
           
private  java.lang.Thread m_KeyPoolThread
           
private  KeyPool.KeyList pool
           
private  int poolSize
           
private  boolean runflag
           
private  java.security.SecureRandom sr
           
 
Constructor Summary
private KeyPool(int poolsize, int keylength)
           
 
Method Summary
static int getKey(byte[] key)
           
static int getKey(byte[] key, int offset)
           
 void run()
           
static KeyPool start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sr

private java.security.SecureRandom sr

pool

private KeyPool.KeyList pool

aktKey

private KeyPool.KeyList aktKey

keySize

private int keySize

poolSize

private int poolSize

l1

private java.lang.Object l1

l2

private java.lang.Object l2

runflag

private boolean runflag

m_KeyPool

private static KeyPool m_KeyPool

m_KeyPoolThread

private java.lang.Thread m_KeyPoolThread
Constructor Detail

KeyPool

private KeyPool(int poolsize,
                int keylength)
Method Detail

start

public static KeyPool start()

run

public void run()
Specified by:
run in interface java.lang.Runnable

getKey

public static int getKey(byte[] key)

getKey

public static int getKey(byte[] key,
                         int offset)