Skip to content

Commit 3ee948f

Browse files
committed
Fixed formatting
1 parent 41a91a8 commit 3ee948f

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/config/delegate/CertificateDelegate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
/**
3333
*
34-
3534
*/
3635
public class CertificateDelegate extends Delegate {
3736

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/crypto/ec/Curve25519.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ public static final void clamp(byte[] k) {
5858
/*
5959
* Key-pair generation P [out] your public key s [out] your private key for
6060
* signing k [out] your private key for key agreement k [in] 32 random bytes
61-
* s may be NULL if you don't care
62-
*
63-
* WARNING: if s is not NULL, this function has data-dependent timing
61+
* s may be NULL if you don't care WARNING: if s is not NULL, this function
62+
* has data-dependent timing
6463
*/
6564
public static final void keygen(byte[] P, byte[] s, byte[] k) {
6665
clamp(k);

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/workflow/factory/WorkflowConfigurationFactory.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@
5858
/**
5959
* Create a WorkflowTace based on a Config instance.
6060
*
61-
* @author Juraj Somorovsky <juraj.somorovsky@rub.de>
62-
* @author Philip Riese <philip.riese@rub.de>
63-
* @author Nurullah Erinola <nurullah.erinola@rub.de>
6461
*/
6562
public class WorkflowConfigurationFactory {
6663

@@ -111,6 +108,8 @@ private ConnectionEnd getSafeSingleContextConnectionEnd() {
111108

112109
/**
113110
* Create a hello workflow for the default connection end defined in config.
111+
*
112+
* @return A HelloWorkflow
114113
*/
115114
public WorkflowTrace createHelloWorkflow() {
116115
return createHelloWorkflow(getSafeSingleContextConnectionEnd());
@@ -192,7 +191,7 @@ private WorkflowTrace createHelloWorkflow(ConnectionEnd ourConnectionEnd) {
192191
* Create a handshake workflow for the default connection end defined in
193192
* config.
194193
*
195-
* @return
194+
* @return A HandshakeWorkflow
196195
*/
197196
public WorkflowTrace createHandshakeWorkflow() {
198197
return createHandshakeWorkflow(getSafeSingleContextConnectionEnd());
@@ -239,7 +238,7 @@ private WorkflowTrace createHandshakeWorkflow(ConnectionEnd ourConnectionEnd) {
239238
* Creates an extended TLS workflow including an application data and
240239
* heartbeat messages
241240
*
242-
* @return
241+
* @return A FullWorkflow with ApplicationMessages
243242
*/
244243
public WorkflowTrace createFullWorkflow() {
245244
ConnectionEnd ourConnectionEnd = getSafeSingleContextConnectionEnd();

Utils/src/main/java/de/rub/nds/tlsattacker/util/MathHelper.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ public static int intceildiv(int c, int d) {
4545
/**
4646
*
4747
* @param u
48+
* The u parameter
4849
* @param v
50+
* The v parameter
4951
* @return (c,r,s) such that c = r u + s v
5052
*/
5153
public static BigIntegerTripple extendedEuclid(BigInteger u, BigInteger v) {
@@ -91,8 +93,10 @@ public static BigInteger inverseMod(BigInteger a, BigInteger p) {
9193
* Computes Chinese Reminder Theorem: x == congs[i] mod moduli[i]
9294
*
9395
* @param congs
96+
* A BigInteger[] of congestions
9497
* @param moduli
95-
* @return
98+
* A BigInteger[] of moduli
99+
* @return Chinese Reminder Theorem: x == congs[i] mod moduli[i]
96100
*/
97101
public static BigInteger CRT(BigInteger[] congs, BigInteger[] moduli) {
98102

@@ -119,8 +123,10 @@ public static BigInteger CRT(BigInteger[] congs, BigInteger[] moduli) {
119123
* Computes Chinese Reminder Theorem: x == congs[i] mod moduli[i]
120124
*
121125
* @param congs
126+
* A BigInteger[] of congestions
122127
* @param moduli
123-
* @return
128+
* A BigInteger[] of moduli
129+
* @return Chinese Reminder Theorem: x == congs[i] mod moduli[i]
124130
*/
125131
public static BigInteger CRT(List<BigInteger> congs, List<BigInteger> moduli) {
126132
BigInteger[] cs = ArrayConverter.convertListToArray(congs);
@@ -135,8 +141,10 @@ public static BigInteger CRT(List<BigInteger> congs, List<BigInteger> moduli) {
135141
* of-a-java-biginteger
136142
*
137143
* @param x
138-
* @return
144+
* The x Value
145+
* @return BigInteger sqrt root of a number
139146
* @throws IllegalArgumentException
147+
* If x is negative
140148
*/
141149
public static BigInteger bigIntSqRootFloor(BigInteger x) throws IllegalArgumentException {
142150
if (x.compareTo(BigInteger.ZERO) < 0) {
@@ -162,8 +170,10 @@ public static BigInteger bigIntSqRootFloor(BigInteger x) throws IllegalArgumentE
162170
* of-a-java-biginteger
163171
*
164172
* @param x
165-
* @return
173+
* The x Value
174+
* @return BigInteger sqrt root of a number (ceil value)
166175
* @throws IllegalArgumentException
176+
* If x is negative
167177
*/
168178
public static BigInteger bigIntSqRootCeil(BigInteger x) throws IllegalArgumentException {
169179
if (x.compareTo(BigInteger.ZERO) < 0) {

maven-eclipse-codestyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/>
7373
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/>
7474
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/>
75-
<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/>
75+
<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="true"/>
7676
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/>
7777
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="120"/>
7878
<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="120"/>

0 commit comments

Comments
 (0)