summaryrefslogtreecommitdiff
path: root/src/hmac256.c
AgeCommit message (Collapse)AuthorFilesLines
2015-10-15Fix double free on error.NIIBE Yutaka1-4/+2
* src/hmac256.c (_gcry_hmac256_finalize): Don't free HD.
2013-09-21Remove i386 inline assembly version of rotation functionsJussi Kivilinna1-11/+2
* cipher/bithelp.h (rol, ror): Remove i386 version, change macros to inline functions. * src/hmac256.c (ror): Ditto. -- (Current) compilers can optimize '(x << c) | (x >> (32-c))' to rotation instruction. So remove i386 specific assembly for manually doing this. Furthermore, compiler can generate faster code in case where 'c' is constant and can use rotate with immediate value rather than rotate with %cl register. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
2013-07-10Fix i386/amd64 inline assembly "cc" clobbersJussi Kivilinna1-1/+2
* cipher/bithelp.h [__GNUC__, __i386__] (rol, ror): add "cc" globber for inline assembly. * cipher/cast5.c [__GNUC__, __i386__] (rol): Ditto. * random/rndhw.c [USE_DRNG] (rdrand_long): Ditto. * src/hmac256.c [__GNUC__, __i386__] (ror): Ditto. * mpi/longlong.c [__i386__] (add_ssaaaa, sub_ddmmss, umul_ppmm) (udiv_qrnnd, count_leading_zeros, count_trailing_zeros): Ditto. -- These assembly snippets modify cflags but do not mark "cc" clobber. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
2011-09-15Fix an endless loop in hmac256 --binaryWerner Koch1-0/+2
2011-02-04Nuked almost all trailing whitespace.Werner Koch1-31/+31
Check and install the standard git pre-commit hook.
2010-04-12Applied spelling fixes and more verbose test diagnositcs by Brad Hards.Werner Koch1-1/+1
2010-01-21Support WindowsCE.Werner Koch1-1/+10
2009-01-22PreparingWerner Koch1-1/+1
2008-12-10Fix for big endian hosts.Werner Koch1-6/+0
2008-12-10Allow speicification of domain parameters for DSA key generation.Werner Koch1-1/+1
Doc updates. Allows the use of the strings AES-128, AES-192, AES-256 to specify AES algorithms.
2008-09-20fix sigbusWerner Koch1-1/+3
2008-08-22Completed the RNG implementaion switching.Werner Koch1-8/+109
Added framework for running RNG tests. Added an experimental option --enable-hmac-binary-check to configure. --This line, and those below, will be ignored-- M src/fips.c M src/cipher-proto.h M src/global.c M src/hmac256.c M src/ChangeLog M src/hmac256.h M src/Makefile.am M tests/Makefile.am M configure.ac M doc/gcrypt.texi M random/random-fips.c M random/random.c M random/rand-internal.h M random/random.h M random/ChangeLog M ChangeLog M README
2008-08-19A whole bunch of changes to eventually support Werner Koch1-0/+687
FIPS restricted mode. Also some documentation improvements and other minor enhancements. See the ChangeLogs. Stay tuned.