diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 05cd5f066..267070552 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -750,8 +750,11 @@ t_ax_encrypt (struct CadetTunnel *t, void *dst, const void *src, size_t size) | |||
750 | struct GNUNET_CRYPTO_SymmetricInitializationVector iv; | 750 | struct GNUNET_CRYPTO_SymmetricInitializationVector iv; |
751 | struct CadetTunnelAxolotl *ax; | 751 | struct CadetTunnelAxolotl *ax; |
752 | size_t out_size; | 752 | size_t out_size; |
753 | struct GNUNET_TIME_Absolute start_time; | ||
754 | struct GNUNET_TIME_Relative duration; | ||
753 | 755 | ||
754 | LOG (GNUNET_ERROR_TYPE_DEBUG, " t_ax_encrypt start\n"); | 756 | LOG (GNUNET_ERROR_TYPE_DEBUG, " t_ax_encrypt start\n"); |
757 | start_time = GNUNET_TIME_absolute_get (); | ||
755 | 758 | ||
756 | ax = t->ax; | 759 | ax = t->ax; |
757 | 760 | ||
@@ -806,6 +809,9 @@ t_ax_encrypt (struct CadetTunnel *t, void *dst, const void *src, size_t size) | |||
806 | 809 | ||
807 | t_hmac_derive_key (&ax->CKs, &ax->CKs, "1", 1); | 810 | t_hmac_derive_key (&ax->CKs, &ax->CKs, "1", 1); |
808 | 811 | ||
812 | duration = GNUNET_TIME_absolute_get_duration (start_time); | ||
813 | LOG (GNUNET_ERROR_TYPE_DEBUG, " t_ax_encrypt duration %s\n", | ||
814 | GNUNET_STRINGS_relative_time_to_string (duration, GNUNET_YES)); | ||
809 | LOG (GNUNET_ERROR_TYPE_DEBUG, " t_ax_encrypt end\n"); | 815 | LOG (GNUNET_ERROR_TYPE_DEBUG, " t_ax_encrypt end\n"); |
810 | 816 | ||
811 | return out_size; | 817 | return out_size; |