Home GnuPG

rijndael-ssse3: fix counter operand from read-only to read/write
aada604594fdUnpublished

Unpublished Commit ยท Learn More

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

Description

rijndael-ssse3: fix counter operand from read-only to read/write

* cipher/rijndael-ssse3-amd64.c (_gcry_aes_ssse3_ctr_enc): Change
'ctrlow' operand from read-only to read-write.

With read-only operand, compiler is allowed to pass temporary
register to assembly block and throw away any calculation that
have been done on that register. On the other hand, compiler is
also allowed to keep operand value permanently in one register
as value is treated as read-only, and effectly operates as
expected. Selection between these two depends on compiler
version and used flags.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jan 4 2017, 11:02 AM
Parents
rC98b49695b1ff: Extend GCRYCTL_PRINT_CONFIG to print compiler version.
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rCaada604594fd: rijndael-ssse3: fix counter operand from read-only to read/write (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Jan 4 2017, 11:10 AM