Cleaned up all 'imports' in all applications, core and router.

This commit is contained in:
Oldaris
2008-07-16 13:42:54 +00:00
parent f261deaf16
commit 5782c42d25
493 changed files with 2221 additions and 1833 deletions

View File

@@ -29,9 +29,9 @@ package net.i2p.crypto;
* POSSIBILITY OF SUCH DAMAGE.
*/
import net.i2p.data.SessionKey;
import net.i2p.data.DataHelper;
import net.i2p.I2PAppContext;
import net.i2p.data.DataHelper;
import net.i2p.data.SessionKey;
public class AES256Bench {
private static I2PAppContext _context = new I2PAppContext();

View File

@@ -8,12 +8,11 @@ package net.i2p.crypto;
*
*/
import net.i2p.data.SessionKey;
import net.i2p.data.DataHelper;
import net.i2p.I2PAppContext;
import net.i2p.util.RandomSource;
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.DataHelper;
import net.i2p.data.SessionKey;
import net.i2p.util.RandomSource;
/**
* @author Comwiz

View File

@@ -10,20 +10,13 @@ package net.i2p.crypto;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.Base64;
import net.i2p.data.DataHelper;
import net.i2p.data.Hash;
import net.i2p.data.SessionKey;
import net.i2p.util.Clock;
import net.i2p.util.Log;
import net.i2p.util.RandomSource;
import junit.framework.TestCase;
/**
* @author Comwiz
*/

View File

@@ -8,16 +8,10 @@ package net.i2p.crypto;
*
*/
import java.security.InvalidKeyException;
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.ByteArray;
import net.i2p.data.DataHelper;
import net.i2p.data.SessionKey;
import net.i2p.util.ByteCache;
import net.i2p.crypto.CryptixAESEngine;
import junit.framework.TestCase;
public class CryptixAESEngineTest extends TestCase{
public void testED() {

View File

@@ -10,9 +10,8 @@ package net.i2p.crypto;
*/
import net.i2p.data.DataHelper;
import junit.framework.TestCase;
import net.i2p.data.DataHelper;
public class CryptixRijndael_AlgorithmTest extends TestCase {
public void testCRA() throws Exception{

View File

@@ -11,12 +11,10 @@ package net.i2p.crypto;
import java.math.BigInteger;
import net.i2p.data.DataHelper;
import net.i2p.data.SessionKey;
import net.i2p.I2PAppContext;
import net.i2p.util.RandomSource;
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.SessionKey;
import net.i2p.util.RandomSource;
public class DHSessionKeyBuilderTest extends TestCase {
public void testDHSessionKeyBuilder(){

View File

@@ -30,6 +30,7 @@ package net.i2p.crypto;
*/
import java.io.ByteArrayInputStream;
import net.i2p.data.Signature;
import net.i2p.data.SigningPrivateKey;
import net.i2p.data.SigningPublicKey;

View File

@@ -9,12 +9,12 @@ package net.i2p.crypto;
*/
import java.io.ByteArrayInputStream;
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.Signature;
import net.i2p.data.SigningPrivateKey;
import net.i2p.data.SigningPublicKey;
import net.i2p.I2PAppContext;
import junit.framework.TestCase;
public class DSATest extends TestCase{
private I2PAppContext _context;

View File

@@ -29,10 +29,10 @@ package net.i2p.crypto;
* POSSIBILITY OF SUCH DAMAGE.
*/
import net.i2p.I2PAppContext;
import net.i2p.data.DataHelper;
import net.i2p.data.PrivateKey;
import net.i2p.data.PublicKey;
import net.i2p.I2PAppContext;
public class ElGamalBench {
private static I2PAppContext _context = new I2PAppContext();

View File

@@ -8,27 +8,23 @@ package net.i2p.crypto;
*
*/
import net.i2p.I2PAppContext;
import net.i2p.data.Hash;
import net.i2p.data.SessionKey;
import net.i2p.data.Base64;
import net.i2p.data.PublicKey;
import net.i2p.data.PrivateKey;
import net.i2p.data.DataHelper;
import net.i2p.data.DataFormatException;
import net.i2p.data.SessionTag;
import net.i2p.util.RandomSource;
import net.i2p.util.Log;
import net.i2p.util.Clock;
import java.io.IOException;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Set;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.Base64;
import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper;
import net.i2p.data.Hash;
import net.i2p.data.PrivateKey;
import net.i2p.data.PublicKey;
import net.i2p.data.SessionKey;
import net.i2p.data.SessionTag;
import net.i2p.util.RandomSource;
public class ElGamalTest extends TestCase{
private I2PAppContext _context;

View File

@@ -29,10 +29,11 @@ package net.i2p.crypto;
* POSSIBILITY OF SUCH DAMAGE.
*/
import java.util.Properties;
import net.i2p.I2PAppContext;
import net.i2p.data.Hash;
import net.i2p.data.SessionKey;
import java.util.Properties;
public class HMACSHA256Bench {
public static void main(String args[]) {

View File

@@ -8,11 +8,10 @@ package net.i2p.crypto;
*
*/
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.SessionKey;
import junit.framework.TestCase;
public class HMACSHA256Test extends TestCase{
private I2PAppContext _context;

View File

@@ -8,16 +8,15 @@ package net.i2p.crypto;
*
*/
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.util.RandomSource;
import net.i2p.data.DataHelper;
import net.i2p.data.PrivateKey;
import net.i2p.data.PublicKey;
import net.i2p.data.Signature;
import net.i2p.data.SigningPrivateKey;
import net.i2p.data.SigningPublicKey;
import net.i2p.data.DataHelper;
import net.i2p.data.Signature;
import net.i2p.data.PublicKey;
import net.i2p.data.PrivateKey;
import junit.framework.TestCase;
import net.i2p.util.RandomSource;
public class KeyGeneratorTest extends TestCase{
public void testKeyGen(){

View File

@@ -21,7 +21,7 @@ package net.i2p.crypto;
*/
//package com.bitzi.util;
import java.security.*;
import java.security.MessageDigest;
import junit.framework.TestCase;

View File

@@ -8,13 +8,10 @@ package net.i2p.crypto;
*
*/
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.DataHelper;
import net.i2p.data.Hash;
import org.bouncycastle.crypto.digests.SHA256Digest;
import junit.framework.TestCase;
/**
* @author Comwiz
*/

View File

@@ -8,21 +8,16 @@ package net.i2p.crypto;
*
*/
import net.i2p.data.PublicKey;
import net.i2p.data.PrivateKey;
import net.i2p.data.SessionKey;
import net.i2p.data.SessionTag;
import net.i2p.data.DataHelper;
import net.i2p.data.DataFormatException;
import net.i2p.util.Log;
import net.i2p.util.Clock;
import net.i2p.I2PAppContext;
import java.util.HashSet;
import java.util.Set;
import junit.framework.TestCase;
import net.i2p.I2PAppContext;
import net.i2p.data.DataHelper;
import net.i2p.data.PrivateKey;
import net.i2p.data.PublicKey;
import net.i2p.data.SessionKey;
import net.i2p.data.SessionTag;
/**
*