private void setUp()
{
HashMap map = new HashMap();
map.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(1024));
RSAKeyPairGenerator kpg = new RSAKeyPairGenerator();
kpg.setup(map);
KeyPair kp = kpg.generate();
pubK = (RSAPublicKey) kp.getPublic();
secK = (RSAPrivateKey) kp.getPrivate();
}