aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/crypto/aes_cbc.h
diff options
context:
space:
mode:
authorhsandid <halsandi@cisco.com>2023-12-11 04:47:11 +0100
committerhsandid <halsandi@cisco.com>2023-12-11 04:47:11 +0100
commitb321325a47993a87c3550a34082fba91b3dd817d (patch)
tree90844af15881c2f1bdbec034a4a9b15ecae1000c /src/vppinfra/crypto/aes_cbc.h
parentd1eb1b7523cc1378f7caef93966420f67a5ddc69 (diff)
vppinfra : fix alignment issue
Type: fix Modified alignment cast causing crash issues Change-Id: Iae3bb767ef2ba81466bf1567264a4c76ae45bb92 Signed-off-by: hsandid <halsandi@cisco.com>
Diffstat (limited to 'src/vppinfra/crypto/aes_cbc.h')
-rw-r--r--src/vppinfra/crypto/aes_cbc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/crypto/aes_cbc.h b/src/vppinfra/crypto/aes_cbc.h
index 5c3054f4a93..3f0f1f1f797 100644
--- a/src/vppinfra/crypto/aes_cbc.h
+++ b/src/vppinfra/crypto/aes_cbc.h
@@ -471,7 +471,7 @@ aes2_cbc_dec (const u8x16 *k, u8x32u *src, u8x32u *dst, u8x16u *iv, int count,
for (i = 1; i < rounds; i++)
rl = aes_dec_round (rl, k[i]);
rl = aes_dec_last_round (rl, k[i]);
- *(u8x16 *) dst = rl ^ u8x32_extract_hi (f);
+ *(u8x16u *) dst = rl ^ u8x32_extract_hi (f);
}
}
#endif