diff options
-rw-r--r-- | src/auth_algo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/auth_algo.c b/src/auth_algo.c index ae33233..b842dd9 100644 --- a/src/auth_algo.c +++ b/src/auth_algo.c @@ -176,6 +176,7 @@ void auth_algo_sha1_close(auth_algo_t* aa) void auth_algo_sha1_generate(auth_algo_t* aa, key_derivation_t* kd, encrypted_packet_t* packet) { + encrypted_packet_add_auth_tag(packet); if(!encrypted_packet_get_auth_tag_length(packet)) return; @@ -207,8 +208,6 @@ void auth_algo_sha1_generate(auth_algo_t* aa, key_derivation_t* kd, encrypted_pa #endif } - encrypted_packet_add_auth_tag(packet); - #ifndef USE_SSL_CRYPTO gcry_md_reset(params->handle_); gcry_md_write(params->handle_, encrypted_packet_get_auth_portion(packet), encrypted_packet_get_auth_portion_length(packet)); |