summaryrefslogtreecommitdiffstats
path: root/src/methods/composed_umac/composed_umac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/methods/composed_umac/composed_umac.c')
-rw-r--r--src/methods/composed_umac/composed_umac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/methods/composed_umac/composed_umac.c b/src/methods/composed_umac/composed_umac.c
index 02fdda6..6c01bff 100644
--- a/src/methods/composed_umac/composed_umac.c
+++ b/src/methods/composed_umac/composed_umac.c
@@ -265,7 +265,7 @@ static bool method_decrypt(fastd_peer_t *peer, fastd_method_session_state_t *ses
ok = session->uhash->digest(session->uhash_state, &tag, inblocks+1, in_len);
}
- if (!ok || memcmp(&tag, &outblocks[0], sizeof(fastd_block128_t)) != 0) {
+ if (!ok || !block_equal(&tag, &outblocks[0])) {
fastd_buffer_free(*out);
return false;
}