Niels Möller [Tue, 17 Jan 2012 11:09:15 +0000 (12:09 +0100)]
* testsuite/setup-env: New file. Wine workaround. Can't get
../.lib into wine's dll search path, so create additional
symlinks.
* testsuite/teardown-env: ...and delete them here.
* examples/setup-env: Similar links setup here.
* examples/teardown-env: ... and deleted.
Niels Möller [Tue, 17 Jan 2012 11:09:00 +0000 (12:09 +0100)]
* testsuite/setup-env: New file. Wine workaround. Can't get
../.lib into wine's dll search path, so create additional
symlinks.
* testsuite/teardown-env: ...and delete them here.
Martin Storsjö [Fri, 25 Nov 2011 12:59:31 +0000 (13:59 +0100)]
From Martin Storsjö:
* configure.ac (W64_ABI): New variable, set when compiling for
64-bit M$ windows.
* config.m4.in (W64_ABI): Define, from configure substitution.
Martin Storsjö [Thu, 24 Nov 2011 19:43:33 +0000 (20:43 +0100)]
* testsuite/Makefile.in (check): Pass $(EXEEXT) in the environment of
run-tests.
* testsuite/pkcs1-conv-test: Use $EXEEXT and $EMULATOR. Ignore \r
in rsa-sign output.
Martin Storsjö [Thu, 24 Nov 2011 19:43:12 +0000 (20:43 +0100)]
* examples/Makefile.in (check): Pass $(EMULATOR) and $(EXEEXT) in
the environment of run-tests.
* examples/rsa-encrypt-test: Use $EXEEXT and $EMULATOR.
* examples/rsa-sign-test: Likewise.
* examples/rsa-verify-test: Likewise.
* examples/setup-env: Likewise.
Niels Möller [Sun, 20 Nov 2011 20:01:51 +0000 (21:01 +0100)]
Take ALIGNOF_UINT64_T into account when getting the offset for the
subkeys. Differs between w32 and other systems. w32 problem identified
by Martin Storsjö.
Martin Storsjö [Sat, 19 Nov 2011 14:22:47 +0000 (15:22 +0100)]
Cygwin/mingw32 improvements contributed by Martin Storsjö:
* Makefile.in (IMPLICIT_TARGETS): New variable for DLL link
libraries.
(clean-here): Delete the DLL import libraries.
Martin Storsjö [Sat, 19 Nov 2011 14:19:22 +0000 (15:19 +0100)]
Cygwin/mingw32 improvements contributed by Martin Storsjö:
* configure.ac: Setup installation of dll files in $bindir.
(IF_DLL, LIBNETTLE_FILE_SRC, LIBHOGWEED_FILE_SRC): New
substitutions.
* config.make.in (LIBNETTLE_FILE_SRC): Substitute new autoconf
variable.
(LIBHOGWEED_FILE_SRC): Likewise.
* Makefile.in (install-dll-nettle, uninstall-dll-nettle): New
target for installing the dll file in $bindir.
(install-shared-nettle): Conditionally
depend on install-dll-nettle. Use LIBNETTLE_FILE_SRC.
(uninstall-shared-nettle): Conditionally depend on
install-dll-nettle.
(various hogweed targets): Analogous changes.
* config.guess: Upgraded to current version, timestamp 2011-08-20.
Needed to recognize osx (darwin) on x86_64.
* config.sub: Upgraded to current version, timestamp 2011-08-23.
Niels Möller [Mon, 29 Aug 2011 18:41:15 +0000 (20:41 +0200)]
* sha256.c (sha256_update): Updated MD_UPDATE call for new
conventions.
(sha256_write_digest): Use MD_PAD rather than MD_FINAL, and insert
the length manually.
* sha512.c: Analogous changes.
Niels Möller [Mon, 29 Aug 2011 18:37:45 +0000 (20:37 +0200)]
* sha1.c (COMPRESS): New macro.
(sha1_update): Updated MD_UPDATE call for new conventions.
(sha1_digest): Use MD_PAD rather than MD_FINAL, and insert the
length manually.
Niels Möller [Mon, 29 Aug 2011 18:35:36 +0000 (20:35 +0200)]
(ripemd160_init): Use memcpy for initializing the state vector.
(COMPRESS): New macro.
(ripemd160_update): Use MD_UPDATE.
(ripemd160_digest): Inline ripemd160_final processing. Use MD_PAD
and _nettle_write_le32.
(ripemd160_final): Deleted function.
Niels Möller [Mon, 29 Aug 2011 18:31:59 +0000 (20:31 +0200)]
(md5_init): Use memcpy for initializing the state vector.
(COMPRESS): New macro, wrapping _nettle_md5_compress.
(md5_update): Use MD_UPDATE.
(md5_digest): Inline md5_final processing. Use MD_PAD and
_nettle_write_le32.
(md5_final): Deleted.
Niels Möller [Mon, 29 Aug 2011 18:26:56 +0000 (20:26 +0200)]
(md4_init): Use memcpy for initializing the state vector.
(md4_update): Use MD_UPDATE.
(md4_digest): Inline md4_final processing, using MD_PAD. Use
_nettle_write_le32.
(md4_block): Renamed, to...
(md4_compress): ... new name. Take ctx pinter as argument.
(md4_final): Deleted function.
Niels Möller [Mon, 29 Aug 2011 18:20:07 +0000 (20:20 +0200)]
* macros.h (MD_UPDATE): Added incr argument. Invoke compression
function with ctx pointer as argument, rather than ctx->state.
(MD_FINAL): Just pad, don't store length field. Renamed to MD_PAD.
(MD_PAD): Analogous change of compression invocations.
Niels Möller [Mon, 29 Aug 2011 14:26:35 +0000 (16:26 +0200)]
(COMPRESS): New macro wrapping _nettle_sha512_compress.
(sha512_update): Use MD_UPDATE.
(sha512_final): Deleted function.
(sha512_write_digest): Use MD_FINAL.
Niels Möller [Mon, 29 Aug 2011 14:24:55 +0000 (16:24 +0200)]
(COMPRESS): New macro wrapping _nettle_sha256_compress.
(SHA256_INCR): Deleted macro.
(sha256_update): Use MD_UPDATE.
(sha256_final): Deleted function.
(sha256_write_digest): New function, replacing sha256_final, and
using MD_FINAL.
(sha256_digest): Use sha256_write_digest.
(sha224_digest): Likewise.
Niels Möller [Mon, 29 Aug 2011 14:17:06 +0000 (16:17 +0200)]
(SHA1_DATA_LENGTH): Deleted unused macro.
(sha1_init): Use memcpy to initialize the state vector.
(SHA1_INCR): Deleted macro.
(sha1_update): Use MD_UPDATE macro, to reduce code duplication.
(sha1_digest): Use MD_FINAL macro.
(sha1_final): Deleted function.
Niels Möller [Sun, 28 Aug 2011 20:21:37 +0000 (22:21 +0200)]
(ROL32): Renamed macro (was "rol"). Deleted
x86 version using inline assembly; at least gcc-4.4.5 recognizes
shift-and-or expressions which are in fact rotations.
(_nettle_ripemd160_compress): Use LE_READ_UINT32.