diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-16 19:57:15 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-16 19:57:15 +0200 |
commit | 3266ea560ea1b243810dce4d46ee2889da7b4f6c (patch) | |
tree | 555ce759adf099350f89fd520f11d04161e8df1c /src/transport/gnunet-communicator-tcp.c | |
parent | cb169441f0ed127dd07e2c6f98436dcd0ece8f61 (diff) | |
download | gnunet-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.c | 10 |
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 | */ |
815 | static void | 815 | static void |
816 | setup_cipher (const struct GNUNET_HashCode *dh, | 816 | setup_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 | */ |
873 | static void | 873 | static void |
874 | setup_in_cipher (const struct GNUNET_CRYPTO_EcdhePublicKey *ephemeral, | 874 | setup_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 | */ |
897 | static void | 897 | static void |
898 | do_rekey (struct Queue *queue, | 898 | do_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 | ||