aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-16 19:57:15 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-16 19:57:15 +0200
commit3266ea560ea1b243810dce4d46ee2889da7b4f6c (patch)
tree555ce759adf099350f89fd520f11d04161e8df1c /src/transport/gnunet-communicator-tcp.c
parentcb169441f0ed127dd07e2c6f98436dcd0ece8f61 (diff)
downloadgnunet-3266ea560ea1b243810dce4d46ee2889da7b4f6c.tar.gz
gnunet-3266ea560ea1b243810dce4d46ee2889da7b4f6c.zip
implement backchannel encryption/decryption
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r--src/transport/gnunet-communicator-tcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index a8f88c5e4..e9223401f 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -814,9 +814,9 @@ pass_plaintext_to_core (struct Queue *queue,
814 */ 814 */
815static void 815static void
816setup_cipher (const struct GNUNET_HashCode *dh, 816setup_cipher (const struct GNUNET_HashCode *dh,
817 const struct GNUNET_PeerIdentity *pid, 817 const struct GNUNET_PeerIdentity *pid,
818 gcry_cipher_hd_t *cipher, 818 gcry_cipher_hd_t *cipher,
819 struct GNUNET_HashCode *hmac_key) 819 struct GNUNET_HashCode *hmac_key)
820{ 820{
821 char key[256/8]; 821 char key[256/8];
822 char ctr[128/8]; 822 char ctr[128/8];
@@ -872,7 +872,7 @@ setup_cipher (const struct GNUNET_HashCode *dh,
872 */ 872 */
873static void 873static void
874setup_in_cipher (const struct GNUNET_CRYPTO_EcdhePublicKey *ephemeral, 874setup_in_cipher (const struct GNUNET_CRYPTO_EcdhePublicKey *ephemeral,
875 struct Queue *queue) 875 struct Queue *queue)
876{ 876{
877 struct GNUNET_HashCode dh; 877 struct GNUNET_HashCode dh;
878 878
@@ -896,7 +896,7 @@ setup_in_cipher (const struct GNUNET_CRYPTO_EcdhePublicKey *ephemeral,
896 */ 896 */
897static void 897static void
898do_rekey (struct Queue *queue, 898do_rekey (struct Queue *queue,
899 const struct TCPRekey *rekey) 899 const struct TCPRekey *rekey)
900{ 900{
901 struct TcpHandshakeSignature thp; 901 struct TcpHandshakeSignature thp;
902 902