summaryrefslogtreecommitdiff
path: root/umac32.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-11 15:10:43 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-11 15:10:43 +0200
commit5938db8f02065cd62cc0d6fcb8d2c6cce48fb5eb (patch)
tree8caf15abace55dd223dcb4b7346e07e8f77eadbd /umac32.c
parent34aef19b0f571e24b575a92d0262df7fe755bf6b (diff)
downloadnettle-5938db8f02065cd62cc0d6fcb8d2c6cce48fb5eb.tar.gz
Minor reorg of umac l3 hashing.
Diffstat (limited to 'umac32.c')
-rw-r--r--umac32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/umac32.c b/umac32.c
index 00ba2f7a..c3714fa3 100644
--- a/umac32.c
+++ b/umac32.c
@@ -122,7 +122,7 @@ umac32_digest (struct umac32_ctx *ctx,
}
_umac_l2_final (ctx->l2_key, ctx->l2_state, 1, ctx->count, ctx->l1_out);
- pad ^= _umac_l3 (ctx->l3_key1, ctx->l3_key2[0], ctx->l2_state);
+ pad ^= ctx->l3_key2[0] ^ _umac_l3 (ctx->l3_key1, ctx->l2_state);
memcpy (digest, &pad, length);
/* Reinitialize */