You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2019/05/26 03:00:03 UTC
[incubator-tuweni] branch master updated: Apply spotless
This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/master by this push:
new 665b866 Apply spotless
665b866 is described below
commit 665b866866bbeda8248a3a2a34bb9756ce91066e
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Sat May 25 19:59:50 2019 -0700
Apply spotless
---
.../apache/tuweni/scuttlebutt/handshake/SecureScuttlebuttStream.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/SecureScuttlebuttStream.java b/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/SecureScuttlebuttStream.java
index db944ad..e9ebbb3 100644
--- a/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/SecureScuttlebuttStream.java
+++ b/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/SecureScuttlebuttStream.java
@@ -156,7 +156,8 @@ final class SecureScuttlebuttStream implements SecureScuttlebuttStreamClient, Se
Bytes encryptedBody = SecretBox.encrypt(message, key, bodyNonce);
int bodySize = encryptedBody.size() - 16;
Bytes encodedBodySize = Bytes.ofUnsignedInt(bodySize).slice(2);
- Bytes header = SecretBox.encrypt(Bytes.concatenate(encodedBodySize, encryptedBody.slice(0, 16)), key, headerNonce);
+ Bytes header =
+ SecretBox.encrypt(Bytes.concatenate(encodedBodySize, encryptedBody.slice(0, 16)), key, headerNonce);
return Bytes.concatenate(header, encryptedBody.slice(16));
} finally {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org