libgcrypt.git
8 years agoUse octet_string_from_mpi in oaep_decode.
Werner Koch [Thu, 9 Jun 2011 12:53:10 +0000 (14:53 +0200)]
Use octet_string_from_mpi in oaep_decode.

This is to remove duplicated code.  I had to move
octet_string_from_mpi more to the top of the file.

8 years agoAdd random-override parameter to the PK functions to allow better regression testing.
Werner Koch [Thu, 9 Jun 2011 12:44:18 +0000 (14:44 +0200)]
Add random-override parameter to the PK functions to allow better regression testing.

8 years agoExpect mHash as input to the PSS functions.
Werner Koch [Thu, 9 Jun 2011 12:00:13 +0000 (14:00 +0200)]
Expect mHash as input to the PSS functions.

The old code did the entire hashing of the message.  The reason we
want the hashed message as input is that a a message might be pretty
long and that the other padding schemes don't allow this either.

8 years agoMerge branch 'master' into ueno-pss
Werner Koch [Thu, 9 Jun 2011 07:05:15 +0000 (09:05 +0200)]
Merge branch 'master' into ueno-pss

Solved conflicts:
cipher/ChangeLog
cipher/pubkey.c
tests/ChangeLog
tests/basic.c

8 years agoRestructure pss_verify to match the description in rfc-3447.
Werner Koch [Thu, 9 Jun 2011 06:48:27 +0000 (08:48 +0200)]
Restructure pss_verify to match the description in rfc-3447.

8 years agoRestructure pss_encode to match the description in rfc-3447.
Werner Koch [Wed, 8 Jun 2011 18:18:42 +0000 (20:18 +0200)]
Restructure pss_encode to match the description in rfc-3447.

8 years agoRestructure oaep_decode to match the description in rfc-3447.
Werner Koch [Fri, 3 Jun 2011 15:13:47 +0000 (17:13 +0200)]
Restructure oaep_decode to match the description in rfc-3447.

This also takes the suggestion by Tom Ritter in account to avoid time
attacks.  Ueno's fixes posted to the ML are thus not needed.

8 years agoRestructure oaep_encode to match the description in rfc-3447.
Werner Koch [Tue, 31 May 2011 15:56:13 +0000 (17:56 +0200)]
Restructure oaep_encode to match the description in rfc-3447.

8 years agoAdd comments to the mgf1 function and speed it up.
Werner Koch [Tue, 31 May 2011 13:14:51 +0000 (15:14 +0200)]
Add comments to the mgf1 function and speed it up.

8 years agoAdd option --die to ease debugging
Werner Koch [Fri, 3 Jun 2011 14:38:11 +0000 (16:38 +0200)]
Add option --die to ease debugging

8 years agoLet gcry_pk_decrypt in non-raw mode return a verbatim buffer.
Werner Koch [Tue, 31 May 2011 09:08:12 +0000 (11:08 +0200)]
Let gcry_pk_decrypt in non-raw mode return a verbatim buffer.

The non-raw modes of gcry_pk_decrypt (i.e. pkcs1 or oaep un-padding)
are new and thus we can still change the semantics.

They now return a verbatim buffer and not anything which internally
has been interpreted as a signed integer.  In raw mode we still stick
to the old semantics which is usually fine because it is mostly used
with pkcs#1 padding and that guarantees that the return value may
never be interpreted as a signed MPI or shorted due to block type used
as the second byte.

8 years agoFixed pkcs#1 unpadding
Werner Koch [Mon, 30 May 2011 14:22:23 +0000 (16:22 +0200)]
Fixed pkcs#1 unpadding

Depending on the size of the used key the old code was not able to
cope with the missing leading zero byte of a pkcs#1 frame.  This is
due to the fact that we use MPIs for conveying the data and our MPIs
usually strip leading zero bytes.  The changed code should now behave
identical to the code used by GnuPG.

Also added a few more comments.

8 years agoFix double-free when un-padding invalid data.
Daiki Ueno [Fri, 27 May 2011 01:18:39 +0000 (10:18 +0900)]
Fix double-free when un-padding invalid data.

Also add invalid padding cases to the basic test.

8 years agoSupport PSS.
Daiki Ueno [Mon, 23 May 2011 09:25:16 +0000 (18:25 +0900)]
Support PSS.

8 years agoTell check_pubkey_* which PK algo is used.
Daiki Ueno [Tue, 24 May 2011 06:01:23 +0000 (15:01 +0900)]
Tell check_pubkey_* which PK algo is used.

8 years agoCleanup pk_encoding_ctx code.
Daiki Ueno [Tue, 24 May 2011 05:43:55 +0000 (14:43 +0900)]
Cleanup pk_encoding_ctx code.

Pass around verify function to pk_module->verify as some encodings like PSS
need custom verification logic.

8 years agoSimplify MGF1 by initializing MD handle at once.
Daiki Ueno [Tue, 24 May 2011 03:25:51 +0000 (12:25 +0900)]
Simplify MGF1 by initializing MD handle at once.

8 years agoMerge branch 'master'.
Werner Koch [Mon, 23 May 2011 11:48:30 +0000 (13:48 +0200)]
Merge branch 'master'.

Actually the same fix I did a few hours ago.

8 years agoAdd a few comments to the pkcs#1 code.
Werner Koch [Mon, 23 May 2011 09:19:17 +0000 (11:19 +0200)]
Add a few comments to the pkcs#1 code.

Also fixed a possible memory leak.

8 years agoFix memleak when decoding OAEP/PKCS#1 block type 2.
Daiki Ueno [Mon, 23 May 2011 03:09:01 +0000 (12:09 +0900)]
Fix memleak when decoding OAEP/PKCS#1 block type 2.

8 years agoAdd $(GPG_ERROR_LIBS) to gcryptrnd_LDADD for gpg_strerror.
Daiki Ueno [Thu, 19 May 2011 02:44:01 +0000 (11:44 +0900)]
Add $(GPG_ERROR_LIBS) to gcryptrnd_LDADD for gpg_strerror.

This avoids implicit DSO linking issue in Fedora.

8 years agoSupport PKCS#1 un-padding.
Daiki Ueno [Tue, 17 May 2011 08:47:30 +0000 (17:47 +0900)]
Support PKCS#1 un-padding.

Support PKCS#1 un-padding for encryption (not for signature).  This patch
also removes "unpad" flag (introduced by OAEP patch) since we can now
do un-padding implicitly when `pkcs1' or `oaep' is given.

8 years agoMinor updates to the OAEP code.
Werner Koch [Wed, 11 May 2011 09:11:16 +0000 (11:11 +0200)]
Minor updates to the OAEP code.

We now check that only one encoding method may be given.  In the error
case we make sure that a released OAEP label variable is set to NULL.
As a failsafe feature we use gpg_err_code_from_syserror all over in
pubkey.c; this has the advantage that a misbehaving gcry_free function
which does not set ERRNO now returns an error code in all cases.

8 years agoAdd missing ChangeLogs
Werner Koch [Wed, 11 May 2011 08:57:33 +0000 (10:57 +0200)]
Add missing ChangeLogs

8 years agoSupport RSA-OAEP padding for encryption.
Daiki Ueno [Fri, 6 May 2011 06:56:58 +0000 (15:56 +0900)]
Support RSA-OAEP padding for encryption.

8 years agoMake sure to return correct error codes for secmem failures.
Werner Koch [Tue, 19 Apr 2011 14:22:48 +0000 (16:22 +0200)]
Make sure to return correct error codes for secmem failures.

ERRNO was not always set and thus it could happen that a misleading
error code was returned form a malloc functions.  Fix was to set
ERRNO.

At one place we also switched to the newer gpg_err_code_from_syserror
which makes sure to return a special error code in case ERRNO is not
set at all.

8 years agoFix double free in gcry_pk_get_keygrip.
Werner Koch [Mon, 11 Apr 2011 19:39:55 +0000 (21:39 +0200)]
Fix double free in gcry_pk_get_keygrip.

This was introduced by the previous memleak change.

8 years agoCTR mode may now be used with arbitrary long data chunks.
Werner Koch [Mon, 11 Apr 2011 19:36:48 +0000 (21:36 +0200)]
CTR mode may now be used with arbitrary long data chunks.

8 years agoAllow for truncation in CTR mode.
Werner Koch [Mon, 11 Apr 2011 17:21:47 +0000 (19:21 +0200)]
Allow for truncation in CTR mode.

This re-enables the behaviour of Libgcrypt 1.4.  Such truncation is
used by libotr and the current error-ed out here.  The bug was
introduced due to a rewrite of the function and the undocumented
feature of truncating OTR data.

8 years agoAdd a few comments to explain the generation of k.
Werner Koch [Fri, 8 Apr 2011 12:59:25 +0000 (14:59 +0200)]
Add a few comments to explain the generation of k.

8 years agoMove an AC_SUBST to avoid an Emacs warning
Werner Koch [Wed, 6 Apr 2011 08:17:48 +0000 (10:17 +0200)]
Move an AC_SUBST to avoid an Emacs warning

Recent versions of Emacs seem to have a not so strict check for local
buffer variables and thus detect our emacs_local_vars subs as improper
local variables.  Moving them more to the top of the file helps.
Another solution would have been to use m4 tricks.

8 years agoFix a small memory leak in gcry_pk_get_keygrip.
Werner Koch [Mon, 4 Apr 2011 14:27:36 +0000 (16:27 +0200)]
Fix a small memory leak in gcry_pk_get_keygrip.

These are two memory leaks, one in the generic code and one ECC
specific.  For an RSA key the first one accounted for 10 bytes, which
is not that small if applied on a large key database.

8 years agoAdd a test option to help finding memory leaks.
Werner Koch [Mon, 4 Apr 2011 14:26:41 +0000 (16:26 +0200)]
Add a test option to help finding memory leaks.

8 years agoMake sure that gcry_realloc (NULL, n) works on all platforms.
Werner Koch [Fri, 1 Apr 2011 08:16:31 +0000 (10:16 +0200)]
Make sure that gcry_realloc (NULL, n) works on all platforms.

realloc (NULL, n) shall behave exactly like malloc (n)
and realloc (p, 0) like free.

Not all platforms implement this correctly thus we now handle this
directly in gcry_realloc.

8 years agoAdd a version string to the binary
Werner Koch [Wed, 30 Mar 2011 09:22:56 +0000 (11:22 +0200)]
Add a version string to the binary

8 years agoFixed a few warnings emitted by gcc 4.6.
Werner Koch [Mon, 28 Mar 2011 12:46:36 +0000 (14:46 +0200)]
Fixed a few warnings emitted by gcc 4.6.

8 years agoNew function gcry_kdf_derive
Werner Koch [Wed, 9 Mar 2011 16:47:44 +0000 (17:47 +0100)]
New function gcry_kdf_derive

This allows us to factor the S2k code from gpg and gpg-agent out to
libgcrypt.  Created a bunch of test vectors using a hacked gpg 1.4.

The function also implements PBKDF2; tested against the RFC-6070 test
vectors.

8 years agoShorten BUILD_REVISION macro
Werner Koch [Tue, 8 Mar 2011 12:56:49 +0000 (13:56 +0100)]
Shorten BUILD_REVISION macro

8 years agoAdd option host to libgcrypt-config.
Werner Koch [Wed, 23 Feb 2011 15:30:38 +0000 (16:30 +0100)]
Add option host to libgcrypt-config.

Also update libgcrypt.m4 for better user experience when
cross-building.

8 years agoUpdated gpg-error.m4 (bug#1261)
Werner Koch [Wed, 23 Feb 2011 11:48:07 +0000 (12:48 +0100)]
Updated gpg-error.m4 (bug#1261)

8 years agoUse AES-NI insns for CTR mode.
Werner Koch [Tue, 22 Feb 2011 15:08:13 +0000 (16:08 +0100)]
Use AES-NI insns for CTR mode.

That really boosts the performance of CTR.

8 years agoFinal changes for 1.5.0-beta1 libgcrypt-1.5.0-beta1
Werner Koch [Mon, 21 Feb 2011 16:04:46 +0000 (17:04 +0100)]
Final changes for 1.5.0-beta1

8 years agoAllow --alignment option for md_bench
Werner Koch [Mon, 21 Feb 2011 09:00:22 +0000 (10:00 +0100)]
Allow --alignment option for md_bench

8 years agoFix strict-aliasing problems in rijndael.c
Werner Koch [Fri, 18 Feb 2011 13:30:13 +0000 (14:30 +0100)]
Fix strict-aliasing problems in rijndael.c

We used to use -fno-strict-aliasing but only if configured in
maintainer-mode.  Thus with gcc-4.4 we could run into problems.  The
fix is to define a new type with the may_alias attribute and use this
for the casting stuff in do_encrypt_aligned and do_decrypt_aligned.

8 years agoFlag the _ac_ functions as deprecated.
Werner Koch [Thu, 17 Feb 2011 18:44:23 +0000 (19:44 +0100)]
Flag the _ac_ functions as deprecated.

The AC functions are deprecated for a long time.  How we will even
print a warning if they are used.

The module register interface is now also deprecated and the use of
those functions will yield a warning as well.

8 years agoFix AES-NI detection.
Werner Koch [Thu, 17 Feb 2011 10:00:25 +0000 (11:00 +0100)]
Fix AES-NI detection.

Really a kind of bown paper bag bug: Use AND and not SUB for bit
testing.  I should have known that, given that 30 years ago I wrote
almost everything in asm.

8 years agoAdd GCRYCTL_DISABLE_HWF
Werner Koch [Wed, 16 Feb 2011 17:31:31 +0000 (18:31 +0100)]
Add GCRYCTL_DISABLE_HWF

This option is useful to disable detected hardware features. It has
been implemented in benchmark, so that it is now possible to run

  tests/benchmark --disable-hwf intel-aesni  cipher aes aes192 aes256

to compare the use of AES-NI insns to the pure C code.

8 years agoImproved AES-CFB performance using AES-NI insn.
Werner Koch [Wed, 16 Feb 2011 16:17:49 +0000 (17:17 +0100)]
Improved AES-CFB performance using AES-NI insn.

There is also a new regression test which tests the bulk
encryption methods we have for a few ciphers (namely AES).  A bug in
them could have slipped through because we only did encrypt-decrypt
tests but didn't compared them to fixed vectors.

Benchmarks using gcc 4.4 show a 7 fold speed improvement for CFB
encryption and 14 for decryption.  This is a bit strange; someone
should check the code to see why we have this difference.

Without AESNI (undef USE_AESNI in rijndael.c):

$ ./benchmark --cipher-repetitions 100 --alignment 16 cipher aes aes256
Running each test 100 times.
                ECB/Stream         CBC             CFB             OFB             CTR
             --------------- --------------- --------------- --------------- ---------------
AES           1370ms  1430ms  1140ms  1190ms  1120ms  1130ms  1520ms  1540ms  1780ms  1770ms
AES256        1780ms  1850ms  1530ms  1610ms  1540ms  1530ms  1930ms  1960ms  2180ms  2180ms

With AESNI:

$ ./benchmark --cipher-repetitions 100 --alignment 16 cipher aes aes256
Running each test 100 times.
                ECB/Stream         CBC             CFB             OFB             CTR
             --------------- --------------- --------------- --------------- ---------------
AES             80ms   100ms   240ms   220ms   140ms    70ms   300ms   290ms   490ms   510ms
AES256         130ms   130ms   290ms   270ms   200ms   100ms   340ms   340ms   470ms   470ms

$ ./benchmark --cipher-repetitions 100 --alignment 0 cipher aes aes256
Running each test 100 times.
                ECB/Stream         CBC             CFB             OFB             CTR
             --------------- --------------- --------------- --------------- ---------------
AES             80ms    90ms   240ms   230ms   150ms    80ms   290ms   300ms   500ms   530ms
AES256         130ms   130ms   290ms   260ms   190ms   110ms   340ms   340ms   470ms   490ms

8 years agoAdd asm code to use aeskeygenassist.
Werner Koch [Tue, 15 Feb 2011 17:37:43 +0000 (18:37 +0100)]
Add asm code to use aeskeygenassist.

However, this code is disabled right now.

8 years agoChange more AES-NI code into plain asm
Werner Koch [Tue, 15 Feb 2011 13:38:02 +0000 (14:38 +0100)]
Change more AES-NI code into plain asm

8 years agoUse a better alignment.
Werner Koch [Mon, 14 Feb 2011 19:31:47 +0000 (20:31 +0100)]
Use a better alignment.

benchmark does now support the option
  --alignment 16
to test the non-aligned overhead.

8 years agoSimplify context alignment and align the IV.
Werner Koch [Mon, 14 Feb 2011 18:18:20 +0000 (19:18 +0100)]
Simplify context alignment and align the IV.

8 years agoFirst take on using AES-NI instructions
Werner Koch [Sun, 13 Feb 2011 16:48:37 +0000 (17:48 +0100)]
First take on using AES-NI instructions

This first naive use of the new Intel AES-NI instructions boosts the
performance of AES on CPUs supporting this by 3 to 5 times.

Results from running
  ./benchmark --cipher-repetitions 10 --large-buffers  cipher aes
on a
  cpu family      : 6
  model           : 37
  model name      : Intel(R) Core(TM) i5 CPU         660  @ 3.33GHz
  stepping        : 2
  cpu MHz         : 3325.494
  cache size      : 4096 KB
  cpu cores       : 2

yields this:

    ECB/Stream         CBC             CFB             OFB             CTR
--------------- --------------- --------------- --------------- ---------------
  130ms   110ms   110ms   100ms   110ms   110ms   160ms   150ms   170ms   170ms
   40ms    40ms    20ms    30ms    30ms    20ms    70ms    70ms    80ms    80ms

The first line is with runtime switched off AES-NI instructions (don't
set use_aesni in do_setkey), the second with enabled AES-NI.  By
fixing the alignment, I hope to squeeze out a little more even with
this naive implementation.

8 years agoRenamed existing flag for AES-NI and fixed detection.
Werner Koch [Fri, 11 Feb 2011 15:06:20 +0000 (16:06 +0100)]
Renamed existing flag for AES-NI and fixed detection.

8 years agoSmall tweak to the ECC debug output.
Werner Koch [Fri, 11 Feb 2011 14:52:36 +0000 (15:52 +0100)]
Small tweak to the ECC debug output.

8 years agoNuked almost all trailing whitespace. post-nuke-of-trailing-ws
Werner Koch [Fri, 4 Feb 2011 19:21:45 +0000 (20:21 +0100)]
Nuked almost all trailing whitespace.

Check and install the standard git pre-commit hook.

8 years agoAdd ChangeLog Entry for Andrey's changes. ECC-INTEGRATION-1-5 ecc-integration-done
Werner Koch [Wed, 2 Feb 2011 15:10:42 +0000 (16:10 +0100)]
Add ChangeLog Entry for Andrey's changes.

Nuke trailing white spaces in the ChangeLog.
Revert one debug message string.

Ready to me merged back to master.

8 years agoAdd function gcry_pk_get_param.
Werner Koch [Tue, 1 Feb 2011 17:31:57 +0000 (18:31 +0100)]
Add function gcry_pk_get_param.

Also changed quite some trailing white spaces.  I never configured
that in Emacs but git diff annoys me with red lines and thus it seems
better to use nuke-trailing-whitespace autmatically.  Sorry for the
extra diff lines.  A diff filter should help to not show those
changes.

8 years agoHandle opaque MPIs in gcry_mpi_cmp
Werner Koch [Tue, 1 Feb 2011 15:13:37 +0000 (16:13 +0100)]
Handle opaque MPIs in gcry_mpi_cmp

8 years agoAdd gcry_pk_get_curve.
Werner Koch [Tue, 1 Feb 2011 09:40:50 +0000 (10:40 +0100)]
Add gcry_pk_get_curve.

8 years agoChanged ecdh parameter names and fixed MPI allocation.
Werner Koch [Mon, 31 Jan 2011 14:35:08 +0000 (15:35 +0100)]
Changed ecdh parameter names and fixed MPI allocation.

8 years agoReturn used curve name with ECC key generation
Werner Koch [Mon, 31 Jan 2011 08:29:20 +0000 (09:29 +0100)]
Return used curve name with ECC key generation

8 years agoReverted the API to the old one.
Werner Koch [Thu, 27 Jan 2011 10:32:58 +0000 (11:32 +0100)]
Reverted the API to the old one.

Storing thy curve name into an MPI and dropping all the other
parameters breaks the ABI.  Further it as not anymore possible to
specify arbitrary curves.  Thus I had to revert it to the old ABI.

Another advantage is that the required ECDH changes are now minimal.
The disadvantage is that we need to adjust the GnuPG code and do the
curve selection and translation to DER encoded OIDs itself.

8 years agoMerge commit 'f4786ac' into ECC-INTEGRATION-1-5
Werner Koch [Thu, 27 Jan 2011 05:51:04 +0000 (06:51 +0100)]
Merge commit 'f4786ac' into ECC-INTEGRATION-1-5

8 years agoExtend ignore file for non-vpath builds
Werner Koch [Thu, 27 Jan 2011 05:47:06 +0000 (06:47 +0100)]
Extend ignore file for non-vpath builds

8 years agoBegin of changing the ECDH API.
Werner Koch [Wed, 26 Jan 2011 18:26:38 +0000 (19:26 +0100)]
Begin of changing the ECDH API.

8 years agoEditorial changes.
Werner Koch [Thu, 20 Jan 2011 17:50:29 +0000 (18:50 +0100)]
Editorial changes.
Adjusted indentation to GNU style.
Replaced C++ style comments.
Reformatted some comments.

8 years agoRevert version number to 1.5.0.
Werner Koch [Thu, 20 Jan 2011 16:42:37 +0000 (17:42 +0100)]
Revert version number to 1.5.0.
Update AUTHORS and NEWS.

8 years agoFixed a typo, added logging.
Andrey Jivsov [Thu, 13 Jan 2011 05:20:57 +0000 (21:20 -0800)]
Fixed a typo, added logging.

8 years ago'g10/gpg2 --encrypt --debug 15 -r ecdsa -a -o _e.asc _' and 'g10/gpg2 --debug 15...
Andrey Jivsov [Tue, 11 Jan 2011 04:11:54 +0000 (20:11 -0800)]
'g10/gpg2 --encrypt --debug 15 -r ecdsa -a  -o _e.asc _'  and 'g10/gpg2 --debug 15 _e.asc', as well as decoding of an old message posted on https://sites.google.com/site/brainhub/pgpecckeys work.

This is the milestone 2 that brings in ECDH support from http://code.google.com/p/gnupg-ecc/source/detail?r=15 .

Updated the ECDH code to work with latest gnupg that doesn't expose private components of a public key.

8 years agoAdd a list of files to ignore.
Werner Koch [Fri, 7 Jan 2011 13:06:27 +0000 (14:06 +0100)]
Add a list of files to ignore.

8 years agoIntegrating http://code.google.com/p/gnupg-ecc/source/detail?r=15 .
Andrey Jivsov [Thu, 6 Jan 2011 07:37:26 +0000 (23:37 -0800)]
Integrating code.google.com/p/gnupg-ecc/source/detail?r=15 .

This merge went smoothly and didn't need any code written (as opposed to parallel gnupg integration). The checked in code was tested through gnupg with 'gnupg --gen-key (select ECC)'.

This change corresponds to earlier check in gnupg project. This branch, ECC-INTEGRATION-1-5, corresponds to ECC-INTEGRATION-2-1 in gnupg project.

8 years agoMakefile.am (LDADD): Fix typo in last change.
Werner Koch [Tue, 4 Jan 2011 10:05:13 +0000 (11:05 +0100)]
Makefile.am (LDADD): Fix typo in last change.
Reported by Andrey Jivsov.

8 years ago* configure.ac (BUILD_REVISION): Use git_revision.
Werner Koch [Thu, 23 Dec 2010 14:19:51 +0000 (15:19 +0100)]
* configure.ac (BUILD_REVISION): Use git_revision.

9 years agoDoc fixes.
Werner Koch [Thu, 4 Nov 2010 14:56:17 +0000 (14:56 +0000)]
Doc fixes.
Started some work on dumpsexp.

9 years agoLook at GNUPG_RNDW32_NOPERF
Werner Koch [Mon, 18 Oct 2010 10:12:23 +0000 (10:12 +0000)]
Look at GNUPG_RNDW32_NOPERF

9 years agotypo fix
Werner Koch [Tue, 31 Aug 2010 16:43:44 +0000 (16:43 +0000)]
typo fix

9 years agoPrepare support of ia32 AES instructions
Werner Koch [Fri, 27 Aug 2010 08:52:24 +0000 (08:52 +0000)]
Prepare support of ia32 AES instructions

9 years agoFix bug 1263
Werner Koch [Thu, 19 Aug 2010 13:57:20 +0000 (13:57 +0000)]
Fix bug 1263

9 years agoPrepare for a gpg-error change
Werner Koch [Thu, 19 Aug 2010 13:24:49 +0000 (13:24 +0000)]
Prepare for a gpg-error change

9 years agoInsert sys/select.h to be POSIXly correct.
Werner Koch [Mon, 16 Aug 2010 08:45:49 +0000 (08:45 +0000)]
Insert sys/select.h to be POSIXly correct.
Typo fixes.

9 years agoMinor changes for MSVC.
Werner Koch [Fri, 9 Jul 2010 08:21:44 +0000 (08:21 +0000)]
Minor changes for MSVC.
Bumped LT version because we need to add an inetrface in the 1.4 branch.

9 years agofixes for msvc compiler
Werner Koch [Tue, 29 Jun 2010 17:14:35 +0000 (17:14 +0000)]
fixes for msvc compiler

9 years agoAllow transient-key for ecdsa.
Werner Koch [Thu, 10 Jun 2010 09:05:42 +0000 (09:05 +0000)]
Allow transient-key for ecdsa.
Fix a bug in a test.

9 years ago2010-04-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 27 Apr 2010 03:04:56 +0000 (03:04 +0000)]
2010-04-27  Marcus Brinkmann  <marcus@g10code.de>

* rndw32ce.c (fillup_buffer): Rewrite without using nested
functions, which are broken on arm/cegcc.

9 years ago2010-04-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 19 Apr 2010 17:15:03 +0000 (17:15 +0000)]
2010-04-19  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Check for -fno-strict-aliasing.

9 years ago2010-04-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 19 Apr 2010 17:08:12 +0000 (17:08 +0000)]
2010-04-19  Marcus Brinkmann  <marcus@g10code.de>

* misc.c (write2stderr): Dummy variable to silence gcc warning.

9 years ago2010-04-16 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 16 Apr 2010 02:03:49 +0000 (02:03 +0000)]
2010-04-16  Marcus Brinkmann  <marcus@g10code.de>

* sexp.c: (sexp_sscan): Make it variable length, and rename the old version to ...
(vsexp_sscan): ... this new function.  Also swap last two arguments.
(gcry_sexp_create): Remove dummy va_list.
(gcry_sexp_build): Use vsexp_sscan instead of sexp_sscan.
(_gcry_sexp_vbuild): Likewise.
(gcry_sexp_build_array): Remove dummy va_list.
(gcry_sexp_sscan): Likewise.

9 years agoUpdated
Werner Koch [Wed, 14 Apr 2010 14:32:53 +0000 (14:32 +0000)]
Updated

9 years agoApplied spelling fixes and more verbose test diagnositcs by Brad Hards.
Werner Koch [Mon, 12 Apr 2010 21:00:13 +0000 (21:00 +0000)]
Applied spelling fixes and more verbose test diagnositcs by Brad Hards.

9 years agoTypo fixes
Werner Koch [Tue, 6 Apr 2010 10:37:13 +0000 (10:37 +0000)]
Typo fixes

9 years agoAdd new TIGER variants
Werner Koch [Fri, 26 Mar 2010 14:06:43 +0000 (14:06 +0000)]
Add new TIGER variants

9 years agoAdded an entropy gatherer for W32CE.
Werner Koch [Wed, 24 Mar 2010 15:51:37 +0000 (15:51 +0000)]
Added an entropy gatherer for W32CE.

9 years agoHelp not to edit a generated buffer.
Werner Koch [Mon, 15 Mar 2010 12:27:29 +0000 (12:27 +0000)]
Help not to edit a generated buffer.

9 years agoFix for gcc 4.4 on mips
Werner Koch [Mon, 22 Feb 2010 11:35:38 +0000 (11:35 +0000)]
Fix for gcc 4.4 on mips

9 years agoSupport WindowsCE.
Werner Koch [Thu, 21 Jan 2010 21:36:43 +0000 (21:36 +0000)]
Support WindowsCE.

9 years agoAdd an identifier for ECDH.
Werner Koch [Thu, 21 Jan 2010 13:33:34 +0000 (13:33 +0000)]
Add an identifier for ECDH.
Fixed some NEWS entries.
Updated copyright lines.

9 years agoBoost performance of SHA-512 and SHA-256.
Werner Koch [Fri, 11 Dec 2009 16:32:04 +0000 (16:32 +0000)]
Boost performance of SHA-512 and SHA-256.

9 years agoAdd option --disable-O-flag-munging.
Werner Koch [Thu, 10 Dec 2009 17:27:55 +0000 (17:27 +0000)]
Add option --disable-O-flag-munging.

9 years agoCleaned up the cipher encrypy/decrypt constraints checks.
Werner Koch [Thu, 10 Dec 2009 16:51:25 +0000 (16:51 +0000)]
Cleaned up the cipher encrypy/decrypt constraints checks.