[PATCH 1/4] rijndael-p10le: silence incorrect GCC cast alignment warning

Jussi Kivilinna <[email protected]>
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
* cipher/rijndael-p10le.c (_gcry_aes_p10le_gcm_crypt): Cast
context to RIJNDAEL_context type through void pointer.
--

Signed-off-by: Jussi Kivilinna <[email protected]>
---
 cipher/rijndael-p10le.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/rijndael-p10le.c b/cipher/rijndael-p10le.c
index b16ebe1b..65d804f9 100644
--- a/cipher/rijndael-p10le.c
+++ b/cipher/rijndael-p10le.c
@@ -44,7 +44,7 @@ size_t
 _gcry_aes_p10le_gcm_crypt(gcry_cipher_hd_t c, void *outbuf_arg,
                           const void *inbuf_arg, size_t nblocks, int encrypt)
 {
-  RIJNDAEL_context *ctx = (RIJNDAEL_context *) &c->context.c;
+  RIJNDAEL_context *ctx = (void *)&c->context.c;
   unsigned char *rk = (unsigned char *) ctx->u1.keyschedule;
   unsigned char *gcm_table = (unsigned char *) c->u_mode.gcm.gcm_table;
   unsigned char *iv = c->u_ctr.ctr;
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.