Skip to content

Commit c356ed1

Browse files
Pete Bentleyprbprbprb
authored andcommitted
Format fixes.
1 parent 24ac116 commit c356ed1

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

common/src/main/java/org/conscrypt/OpenSSLMac.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ protected synchronized byte[] doFinal() {
192192
final NativeRef.HMAC_CTX ctxLocal = ctx;
193193
return NativeCrypto.HMAC_Final(ctxLocal);
194194
}
195-
196195
}
197196

198197
public static final class HmacMD5 extends Hmac {

common/src/test/java/org/conscrypt/MacTest.java

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -197,24 +197,23 @@ public void test(final Provider provider, final String algorithm) throws Excepti
197197

198198
@Test
199199
public void threadAbuse() {
200-
newMacServiceTester()
201-
.run((provider, algorithm) -> {
202-
final byte[] b1 = new byte[2048];
203-
final byte[] b2 = new byte[2048];
204-
final byte[] b3 = new byte[2048];
205-
final Mac mac = Mac.getInstance(algorithm, provider);
206-
final SecretKeySpec key = findAnyKey(algorithm);
207-
208-
if (key != null) {
209-
TestUtils.stressTest(32, 32, () -> {
210-
mac.init(key);
211-
mac.update(b1);
212-
mac.update(b2);
213-
mac.update(b3);
214-
mac.reset();
215-
});
216-
}
200+
newMacServiceTester().run((provider, algorithm) -> {
201+
final byte[] b1 = new byte[2048];
202+
final byte[] b2 = new byte[2048];
203+
final byte[] b3 = new byte[2048];
204+
final Mac mac = Mac.getInstance(algorithm, provider);
205+
final SecretKeySpec key = findAnyKey(algorithm);
206+
207+
if (key != null) {
208+
TestUtils.stressTest(32, 32, () -> {
209+
mac.init(key);
210+
mac.update(b1);
211+
mac.update(b2);
212+
mac.update(b3);
213+
mac.reset();
217214
});
215+
}
216+
});
218217

219218
}
220219

0 commit comments

Comments
 (0)