[svn] gcry - r1259 - in trunk: . cipher doc
svn author wk
cvs at cvs.gnupg.org
Thu Jul 26 11:15:44 CEST 2007
Author: wk
Date: 2007-07-26 11:15:12 +0200 (Thu, 26 Jul 2007)
New Revision: 1259
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/THANKS
trunk/TODO
trunk/acinclude.m4
trunk/autogen.sh
trunk/cipher/pubkey.c
trunk/cipher/random.c
trunk/doc/ChangeLog
trunk/doc/gcrypt.texi
Log:
Fixed symbol prefix detection.
Typo fixes.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/ChangeLog 2007-07-26 09:15:12 UTC (rev 1259)
@@ -1,7 +1,14 @@
-2007-06-15 Marcus Brinkmann <marcus at g10code.de>
+2007-07-26 Werner Koch <wk at g10code.com>
- * autogen.sh: Use = instead of == in test.
+ * acinclude.m4 (GNUPG_SYS_SYMBOL_UNDERSCORE): Fix a syntax error
+ in the test program which lurked there for 4 years. Adjusted name
+ of libtools global_system_pipe variable and add extra cut stage.
+ Reported by Gregor Riepl.
+
+2007-06-15 Werner Koch <wk at g10code.com>
+ * autogen.sh (FORCE): Use = and not == in test to be POSIXly correct.
+
2007-05-30 Werner Koch <wk at g10code.com>
* configure.ac: Camellia is no longer GPL.
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/NEWS 2007-07-26 09:15:12 UTC (rev 1259)
@@ -3,6 +3,9 @@
* The Camellia cipher is now under the LGPL and included by default.
+ * Fixed a bug in the detection of symbol prefixes which inhibited the
+ build of optimzied assembler code on certain systems.
+
* Interface changes relative to the 1.3.0 release:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modified: trunk/THANKS
===================================================================
--- trunk/THANKS 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/THANKS 2007-07-26 09:15:12 UTC (rev 1259)
@@ -34,6 +34,7 @@
Frank Heckenbach heckenb at mi.uni-erlangen.de
Frank Stajano frank.stajano at cl.cam.ac.uk
Gaël Quéri gqueri at mail.dotcom.fr
+Gregor Riepl seto-kun at freesurf.ch
Gerlinde Klaes gk at u64.de
Greg Louis glouis at dynamicro.on.ca
Greg Troxel gdt at ir.bbn.com
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/TODO 2007-07-26 09:15:12 UTC (rev 1259)
@@ -132,3 +132,6 @@
** C++ tests
We have some code to allow using libgcrypt from C++, so we also
should have a test case.
+
+* /dev/urandom and Solaris
+ Make the configure check similar to GnuPG.
Modified: trunk/acinclude.m4
===================================================================
--- trunk/acinclude.m4 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/acinclude.m4 2007-07-26 09:15:12 UTC (rev 1259)
@@ -93,12 +93,12 @@
[ac_cv_sys_symbol_underscore=no
cat > conftest.$ac_ext <<EOF
void nm_test_func(){}
- int main(){nm_test_func;return 0;
+ int main(){nm_test_func;return 0;}
EOF
if AC_TRY_EVAL(ac_compile); then
# Now try to grab the symbols.
ac_nlist=conftest.nm
- if AC_TRY_EVAL(NM conftest.$ac_objext \| $global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist) && test -s "$ac_nlist"; then
# See whether the symbols have a leading underscore.
if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
ac_cv_sys_symbol_underscore=yes
@@ -110,7 +110,7 @@
fi
fi
else
- echo "configure: cannot run $global_symbol_pipe" >&AC_FD_CC
+ echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
fi
else
echo "configure: failed program was:" >&AC_FD_CC
Modified: trunk/autogen.sh
===================================================================
--- trunk/autogen.sh 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/autogen.sh 2007-07-26 09:15:12 UTC (rev 1259)
@@ -31,7 +31,7 @@
DIE=no
FORCE=
-if test "$1" = "--force"; then
+if test x"$1" = x"--force"; then
FORCE=" --force"
shift
fi
@@ -75,11 +75,9 @@
fi
fi
- # Note: we include Camellia because this is anyway a GPLed build.
./configure --enable-maintainer-mode --prefix=${w32root} \
--host=${host} --build=${build} \
- --with-gpg-error-prefix=${w32root} \
- --enable-ciphers=arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia
+ --with-gpg-error-prefix=${w32root}
exit $?
fi
# ***** end W32 build script *******
Modified: trunk/cipher/pubkey.c
===================================================================
--- trunk/cipher/pubkey.c 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/cipher/pubkey.c 2007-07-26 09:15:12 UTC (rev 1259)
@@ -1214,7 +1214,7 @@
return err;
}
-/* Take the hash value and convert into an MPI, suitable for for
+/* Take the hash value and convert into an MPI, suitable for
passing to the low level functions. We currently support the
old style way of passing just a MPI and the modern interface which
allows to pass flags so that we can choose between raw and pkcs1
Modified: trunk/cipher/random.c
===================================================================
--- trunk/cipher/random.c 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/cipher/random.c 2007-07-26 09:15:12 UTC (rev 1259)
@@ -163,7 +163,7 @@
/* Option flag useful for debugging and the test suite. If set
requests for very strong random are degraded to strong random. Not
- used by regualr applications. */
+ used by regular applications. */
static int quick_test;
/* On systems without entropy gathering modules, this flag is set to
Modified: trunk/doc/ChangeLog
===================================================================
--- trunk/doc/ChangeLog 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/doc/ChangeLog 2007-07-26 09:15:12 UTC (rev 1259)
@@ -1,3 +1,8 @@
+2007-06-15 Werner Koch <wk at g10code.com>
+
+ * gcrypt.texi (Controlling the library): Clarified the use of
+ GCRYCTL_ENABLE_QUICK_RANDOM.
+
2007-04-30 Werner Koch <wk at g10code.com>
* HACKING: New. Two items by Marcus.
Modified: trunk/doc/gcrypt.texi
===================================================================
--- trunk/doc/gcrypt.texi 2007-06-20 18:07:52 UTC (rev 1258)
+++ trunk/doc/gcrypt.texi 2007-07-26 09:15:12 UTC (rev 1259)
@@ -519,10 +519,17 @@
own memory management callbacks.
@item GCRYCTL_ENABLE_QUICK_RANDOM; Arguments: none
-This command activates the use of a highly-insecure, but fast PRNG. It
-can only be used at initialization time. The only useful applications
-for this are certain regression tests.
+This command inhibits the use the very secure random quality level
+(@code{GCRY_VERY_STRONG_RANDOM}) and degrades all request down to
+ at code{GCRY_STRONG_RANDOM}. In general this is not recommened. However,
+for some applications the extra quality random Libgcrypt tries to create
+is not justified and this option may help to get better performace.
+Please check with a crypto expert whether this option can be used for
+your application.
+This option can only be used at initialization time.
+
+
@item GCRYCTL_DUMP_RANDOM_STATS
This command dumps PRNG related statistics to the librarys logging
stream.
More information about the Gnupg-commits
mailing list