Home GnuPG

cipher-xts: fix pointer casting to wrong alignment and aliasing
4f31d816dcc1Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

cipher-xts: fix pointer casting to wrong alignment and aliasing

* cipher/cipher-xts.c (xts_gfmul_byA, xts_inc128): Use buf_get_le64
and buf_put_le64 for accessing data; Change parameter pointers to
'unsigned char *' type.
(_gcry_cipher_xts_crypt): Do not cast buffer pointers to 'u64 *'
for helper functions.
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jan 28 2017, 10:26 AM
Parents
rC55cf1b558870: crc-intel-pclmul: fix undefined behavior with unaligned access
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rC4f31d816dcc1: cipher-xts: fix pointer casting to wrong alignment and aliasing (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Jan 28 2017, 10:26 AM