diff options
author | djm@openbsd.org <djm@openbsd.org> | 2017-11-28 06:09:38 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-11-28 17:19:06 +1100 |
commit | 2937dd02c572a12f33d5c334d518f6cbe0b645eb (patch) | |
tree | 38d74479e900a4aaf9cb057b6a13f2f052a33902 /umac.c | |
parent | 7f257bf3fd3a759f31098960cbbd1453fafc4164 (diff) |
upstream commit
more whitespace errors
OpenBSD-Commit-ID: 5e11c125378327b648940b90145e0d98beb05abb
Diffstat (limited to 'umac.c')
-rw-r--r-- | umac.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: umac.c,v 1.14 2017/11/28 06:04:51 djm Exp $ */ | 1 | /* $OpenBSD: umac.c,v 1.15 2017/11/28 06:09:38 djm Exp $ */ |
2 | /* ----------------------------------------------------------------------- | 2 | /* ----------------------------------------------------------------------- |
3 | * | 3 | * |
4 | * umac.c -- C Implementation UMAC Message Authentication | 4 | * umac.c -- C Implementation UMAC Message Authentication |
@@ -682,7 +682,7 @@ static void nh_final(nh_ctx *hc, UINT8 *result) | |||
682 | nh_transform(hc, hc->data, nh_len); | 682 | nh_transform(hc, hc->data, nh_len); |
683 | hc->bytes_hashed += hc->next_data_empty; | 683 | hc->bytes_hashed += hc->next_data_empty; |
684 | } else if (hc->bytes_hashed == 0) { | 684 | } else if (hc->bytes_hashed == 0) { |
685 | nh_len = L1_PAD_BOUNDARY; | 685 | nh_len = L1_PAD_BOUNDARY; |
686 | zero_pad(hc->data, L1_PAD_BOUNDARY); | 686 | zero_pad(hc->data, L1_PAD_BOUNDARY); |
687 | nh_transform(hc, hc->data, nh_len); | 687 | nh_transform(hc, hc->data, nh_len); |
688 | } | 688 | } |
@@ -1133,10 +1133,10 @@ static int uhash(uhash_ctx_t ahc, u_char *msg, long len, u_char *res) | |||
1133 | * the polyhash. | 1133 | * the polyhash. |
1134 | */ | 1134 | */ |
1135 | if (len <= L1_KEY_LEN) { | 1135 | if (len <= L1_KEY_LEN) { |
1136 | if (len == 0) /* If zero length messages will not */ | 1136 | if (len == 0) /* If zero length messages will not */ |
1137 | nh_len = L1_PAD_BOUNDARY; /* be seen, comment out this case */ | 1137 | nh_len = L1_PAD_BOUNDARY; /* be seen, comment out this case */ |
1138 | else | 1138 | else |
1139 | nh_len = ((len + (L1_PAD_BOUNDARY - 1)) & ~(L1_PAD_BOUNDARY - 1)); | 1139 | nh_len = ((len + (L1_PAD_BOUNDARY - 1)) & ~(L1_PAD_BOUNDARY - 1)); |
1140 | extra_zeroes_needed = nh_len - len; | 1140 | extra_zeroes_needed = nh_len - len; |
1141 | zero_pad((UINT8 *)msg + len, extra_zeroes_needed); | 1141 | zero_pad((UINT8 *)msg + len, extra_zeroes_needed); |
1142 | nh(&ahc->hash, (UINT8 *)msg, nh_len, len, nh_result); | 1142 | nh(&ahc->hash, (UINT8 *)msg, nh_len, len, nh_result); |