|
13 | 13 | import de.rub.nds.modifiablevariable.bytearray.ModifiableByteArray; |
14 | 14 | import de.rub.nds.modifiablevariable.util.ArrayConverter; |
15 | 15 | import de.rub.nds.tlsattacker.attacks.config.InvalidCurveAttackConfig; |
16 | | -import de.rub.nds.tlsattacker.attacks.ec.EcPemCreator; |
17 | 16 | import de.rub.nds.tlsattacker.attacks.ec.ICEAttacker; |
18 | 17 | import de.rub.nds.tlsattacker.attacks.ec.oracles.RealDirectMessageECOracle; |
19 | 18 | import de.rub.nds.tlsattacker.core.config.Config; |
|
37 | 36 | import de.rub.nds.tlsattacker.core.workflow.factory.WorkflowConfigurationFactory; |
38 | 37 | import de.rub.nds.tlsattacker.core.workflow.factory.WorkflowTraceType; |
39 | 38 | import java.math.BigInteger; |
40 | | -import java.security.NoSuchAlgorithmException; |
41 | | -import java.security.NoSuchProviderException; |
42 | | -import java.security.spec.InvalidKeySpecException; |
43 | | -import java.security.spec.InvalidParameterSpecException; |
44 | 39 | import org.apache.logging.log4j.LogManager; |
45 | 40 | import org.apache.logging.log4j.Logger; |
46 | 41 | import org.bouncycastle.util.BigIntegers; |
@@ -74,16 +69,6 @@ public void executeAttack() { |
74 | 69 | tlsConfig.getDefaultSelectedNamedGroup()); |
75 | 70 | BigInteger result = attacker.attack(); |
76 | 71 | LOGGER.info("Result found: {}", result); |
77 | | - |
78 | | - try { |
79 | | - String pem = EcPemCreator.createPemFromPrivateEcKey(tlsConfig.getDefaultSelectedNamedGroup().getJavaName(), |
80 | | - result); |
81 | | - LOGGER.info("Resulting private key in PEM format:\n{}", pem); |
82 | | - } catch (NoSuchAlgorithmException | NoSuchProviderException | InvalidKeySpecException |
83 | | - | InvalidParameterSpecException e) { |
84 | | - LOGGER.info("Creating a PEM privte key object failed: ", e); |
85 | | - } |
86 | | - |
87 | 72 | } |
88 | 73 |
|
89 | 74 | /** |
|
0 commit comments