public void testPartial(TestHarness harness)
{
harness.checkPoint("testPartial");
String cipherName = null;
Cipher full, part1, part2;
IBlockCipher gnu;
byte[] pt;
byte[] kb;
byte[] ct1, ct2, ct3, ct4;
int i, blockSize;
try
{
for (Iterator it = CipherFactory.getNames().iterator(); it.hasNext();)
{
cipherName = (String) it.next();
gnu = CipherFactory.getInstance(cipherName);
full = Cipher.getInstance(cipherName, Registry.GNU_CRYPTO);
part1 = Cipher.getInstance(cipherName, Registry.GNU_CRYPTO);
part2 = Cipher.getInstance(cipherName, Registry.GNU_CRYPTO);
// pt = new byte[gnu.defaultBlockSize()];
blockSize = gnu.defaultBlockSize();
pt = new byte[2 * blockSize];
for (i = 0; i < pt.length; i++)
{
pt[i] = (byte) i;
}
kb = new byte[gnu.defaultKeySize()];
for (i = 0; i < kb.length; i++)
{
kb[i] = (byte) i;
}
full.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(kb, cipherName));