Skip to content

Commit

Permalink
Remove not needed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer198 committed Nov 9, 2023
1 parent bd3b274 commit dccfb41
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 45 deletions.
28 changes: 14 additions & 14 deletions CryptoAnalysis-Android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,20 @@
<artifactId>CryptoAnalysis</artifactId>
</dependency>
<dependency>
<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
<artifactId>soot-infoflow</artifactId>
<version>${flowDroidVersion}</version>
</dependency>
<dependency>
<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
<artifactId>soot-infoflow-summaries</artifactId>
<version>${flowDroidVersion}</version>
</dependency>
<dependency>
<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
<artifactId>soot-infoflow-android</artifactId>
<version>${flowDroidVersion}</version>
</dependency>
<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
<artifactId>soot-infoflow</artifactId>
<version>${flowDroidVersion}</version>
</dependency>
<dependency>
<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
<artifactId>soot-infoflow-summaries</artifactId>
<version>${flowDroidVersion}</version>
</dependency>
<dependency>
<groupId>de.fraunhofer.sit.sse.flowdroid</groupId>
<artifactId>soot-infoflow-android</artifactId>
<version>${flowDroidVersion}</version>
</dependency>
</dependencies>

<distributionManagement>
Expand Down
7 changes: 6 additions & 1 deletion CryptoAnalysis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,15 @@
<artifactId>bctls-jdk15on</artifactId>
<version>1.68</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.9</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.30</version>
<version>2.0.9</version>
</dependency>
<dependency>
<groupId>com.google.crypto.tink</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ private void analyse() {
Transform transform = new Transform("wjtp.ifds", createAnalysisTransformer());
PackManager.v().getPack("wjtp").add(transform);
callGraphWatch = Stopwatch.createStarted();
// Soot doesn't allow to run the "jap" pack alone, hence all packs are executed
// PackManager.v().getPack("cg").apply();
// PackManager.v().getPack("wjtp").apply();
PackManager.v().runPacks();

PackManager.v().getPack("cg").apply();
PackManager.v().getPack("wjtp").apply();
// PackManager.v().runPacks();
}

public String toString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static String generateReport(List<CrySLRule> rules, Collection<IAnalysisS
report += String.format("\tNumber of Objects Analyzed: %s\n", objects.size());

if (errorMarkers.rowKeySet().isEmpty()) {
report += "\tNo violation of any of the rules found.\n";
report += "\n\tNo violation of any of the rules found.\n";
} else {
report += "\n\tCryptoAnalysis found the following violations. For details see description above.\n";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class BufferedBlockCipherTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class CipherTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class ECElGamalDecryptorTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class HMacTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class KeyFactoryTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class KeyStoreTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class MessageDigestTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class SSLEngineTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class SecretKey extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class SecureRandom extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package test.finitestatemachine;

import org.junit.Test;

import crypto.analysis.CrySLRulesetSelector.Ruleset;

public class SignatureTest extends FiniteStateMachineTestingFramework{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected HeadlessCryptoScanner createScanner(MavenProject mp) {
}

protected HeadlessCryptoScanner createScanner(MavenProject mp, Ruleset ruleset) {
G.v().reset();
G.reset();
HeadlessCryptoScanner scanner = new HeadlessCryptoScanner() {
@Override
protected String sootClassPath() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void testBCSymmetricCipherExamples() {

setErrorsCount(RequiredPredicateError.class, new TruePositives(2), new FalseNegatives(1, "https://github.com/CROSSINGTUD/CryptoAnalysis/issues/216"), "<gcm_aes_example.GCMAESBouncyCastle: byte[] processing(byte[],boolean)>");
setErrorsCount("<cbc_aes_example.CBCAESBouncyCastle: void setKey(byte[])>", RequiredPredicateError.class, 1);
setErrorsCount("<cbc_aes_example.CBCAESBouncyCastle: byte[] processing(byte[],boolean)>", RequiredPredicateError.class, 1);
setErrorsCount("<cbc_aes_example.CBCAESBouncyCastle: byte[] processing(byte[],boolean)>", RequiredPredicateError.class, 3);

scanner.exec();
assertErrors();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public String getSootClassPath(){
* This method is used to setup Soot
*/
public void setupSoot(String sootClassPath, String mainClass) {
G.v().reset();
G.reset();
Options.v().set_whole_program(true);
Options.v().setPhaseOption("cg.cha", "on");
// Options.v().setPhaseOption("cg", "all-reachable:true");
Expand Down

0 comments on commit dccfb41

Please sign in to comment.