LIBGCRYPT-1-2-BRANCH libgcrypt (8 files)
cvs user wk
cvs at cvs.gnupg.org
Wed Jan 5 14:46:13 CET 2005
Date: Wednesday, January 5, 2005 @ 14:52:34
Author: wk
Path: /cvs/libgcrypt/libgcrypt
Tag: LIBGCRYPT-1-2-BRANCH
Modified: ChangeLog NEWS configure.ac mpi/ChangeLog
mpi/hppa1.1/udiv-qrnnd.S src/ChangeLog src/gcrypt.h src/global.c
Preapred 1.2.1
--------------------------+
ChangeLog | 6 ++++++
NEWS | 16 +++++++++++++++-
configure.ac | 10 +++++-----
mpi/ChangeLog | 5 +++++
mpi/hppa1.1/udiv-qrnnd.S | 15 ++++++++-------
src/ChangeLog | 6 ++++++
src/gcrypt.h | 9 ++++++++-
src/global.c | 7 +++++++
8 files changed, 60 insertions(+), 14 deletions(-)
Index: libgcrypt/ChangeLog
diff -u libgcrypt/ChangeLog:1.158.2.4 libgcrypt/ChangeLog:1.158.2.5
--- libgcrypt/ChangeLog:1.158.2.4 Tue Jan 4 21:56:46 2005
+++ libgcrypt/ChangeLog Wed Jan 5 14:52:33 2005
@@ -1,3 +1,9 @@
+2005-01-05 Werner Koch <wk at g10code.com>
+
+ Released 1.2.1.
+
+ * configure.ac: Set LT to C13/A2/R0.
+
2005-01-04 Werner Koch <wk at g10code.com>
* Makefile.am (ACLOCAL_AMFLAGS): New for -I m4.
Index: libgcrypt/NEWS
diff -u libgcrypt/NEWS:1.69.2.1 libgcrypt/NEWS:1.69.2.2
--- libgcrypt/NEWS:1.69.2.1 Fri Sep 3 21:43:27 2004
+++ libgcrypt/NEWS Wed Jan 5 14:52:33 2005
@@ -1,6 +1,20 @@
-Noteworthy changes in version 1.2.1
+Noteworthy changes in version 1.2.1 (2005-01-05)
------------------------------------------------
+ * Portability fixes, memory allocation fixes and other minor things.
+
+ * Support to build as a W32 static library.
+
+ * Changed the way the RNG gets initialized. This allows to keep it
+ uninitialized as long as no random numbers are used. To override
+ this, the new macro gcry_fast_random_poll may be used. It is in
+ general a good idea to spread this macro into the application code
+ to make sure that these polls happen often enough.
+
+ * Interface changes relative to the 1.2.0 release:
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ gcry_fast_random_poll NEW
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Noteworthy changes in version 1.2.0 (2004-04-15)
Index: libgcrypt/configure.ac
diff -u libgcrypt/configure.ac:1.70.2.3 libgcrypt/configure.ac:1.70.2.4
--- libgcrypt/configure.ac:1.70.2.3 Tue Jan 4 21:56:46 2005
+++ libgcrypt/configure.ac Wed Jan 5 14:52:33 2005
@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
#
# (Process this file with autoconf to produce a configure script.)
-AC_REVISION($Revision: 1.70.2.3 $)
+AC_REVISION($Revision: 1.70.2.4 $)
AC_PREREQ(2.59)
min_automake_version="1.9.3"
@@ -27,15 +27,15 @@
# but remove a "-cvs" prefix right *before* a release and append it
# soon later.
-AC_INIT(libgcrypt, 1.2.1-cvs, bug-libgcrypt at gnupg.org)
+AC_INIT(libgcrypt, 1.2.1, bug-libgcrypt at gnupg.org)
# LT Version numbers, remember to change them just *before* a release.
# (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
# (Interfaces added: CURRENT++, AGE++, REVISION=0)
# (No interfaces changed: REVISION++)
-LIBGCRYPT_LT_CURRENT=12
-LIBGCRYPT_LT_AGE=1
-LIBGCRYPT_LT_REVISION=1
+LIBGCRYPT_LT_CURRENT=13
+LIBGCRYPT_LT_AGE=2
+LIBGCRYPT_LT_REVISION=0
# If the API is changed in an incompatible way: increment the next counter.
LIBGCRYPT_CONFIG_API_VERSION=1
Index: libgcrypt/mpi/ChangeLog
diff -u libgcrypt/mpi/ChangeLog:1.89.2.1 libgcrypt/mpi/ChangeLog:1.89.2.2
--- libgcrypt/mpi/ChangeLog:1.89.2.1 Thu Dec 16 17:32:51 2004
+++ libgcrypt/mpi/ChangeLog Wed Jan 5 14:52:33 2005
@@ -1,3 +1,8 @@
+2005-01-05 Werner Koch <wk at g10code.com>
+
+ * hppa1.1/udiv-qrnnd.S: Reverted change of 2004-03-02 but kept the
+ .align directive.
+
2004-12-16 Werner Koch <wk at g10code.com>
* config.links (mpi_optional_modules): Move entry for powerpc64
Index: libgcrypt/mpi/hppa1.1/udiv-qrnnd.S
diff -u libgcrypt/mpi/hppa1.1/udiv-qrnnd.S:1.7 libgcrypt/mpi/hppa1.1/udiv-qrnnd.S:1.7.2.1
--- libgcrypt/mpi/hppa1.1/udiv-qrnnd.S:1.7 Wed Mar 3 09:08:41 2004
+++ libgcrypt/mpi/hppa1.1/udiv-qrnnd.S Wed Jan 5 14:52:33 2005
@@ -36,11 +36,12 @@
* d gr23
*/
- .code
+ .data
.align 8
.label L$0000
.word 0x43f00000
.word 0x0
+ .code
.export __udiv_qrnnd
.label __udiv_qrnnd
.proc
@@ -50,13 +51,14 @@
stws %r25,-16(0,%r30) ; n_hi
stws %r24,-12(0,%r30) ; n_lo
- ldil L'L$0000,%r19 ; '
- ldo R'L$0000(%r19),%r19 ; '
+ stw %r19,-32(%r30)
+ addil LT%L$0000,%r19
+ ldw RT%L$0000(%r1),%r1
fldds -16(0,%r30),%fr5
stws %r23,-12(0,%r30)
comib,<= 0,%r25,L$1
fcnvxf,dbl,dbl %fr5,%fr5
- fldds 0(0,%r19),%fr4
+ fldds 0(0,%r1),%fr4
fadd,dbl %fr4,%fr5,%fr5
.label L$1
fcpy,sgl %fr0,%fr6L
@@ -73,8 +75,8 @@
ldws -12(0,%r30),%r21
ldws -16(0,%r30),%r20
sub %r24,%r21,%r22
- subb %r25,%r20,%r19
- comib,= 0,%r19,L$2
+ subb %r25,%r20,%r1
+ comib,= 0,%r1,L$2
ldo -64(%r30),%r30
add %r22,%r23,%r22
@@ -86,4 +88,3 @@
.exit
.procend
-
\ No newline at end of file
Index: libgcrypt/src/ChangeLog
diff -u libgcrypt/src/ChangeLog:1.151.2.10 libgcrypt/src/ChangeLog:1.151.2.11
--- libgcrypt/src/ChangeLog:1.151.2.10 Tue Jan 4 21:50:23 2005
+++ libgcrypt/src/ChangeLog Wed Jan 5 14:52:33 2005
@@ -1,3 +1,9 @@
+2005-01-05 Werner Koch <wk at g10code.com>
+
+ * gcrypt.h: Added GCRYCTL_FAST_POLL.
+ (gcry_fast_random_poll): New.
+ * global.c (gcry_control) <FAST_POLL>: New.
+
2004-12-20 Werner Koch <wk at g10code.com>
* gcrypt.h (GCRY_THREAD_OPTION_PTH_IMPL): Tweaks for W32.
Index: libgcrypt/src/gcrypt.h
diff -u libgcrypt/src/gcrypt.h:1.125.2.4 libgcrypt/src/gcrypt.h:1.125.2.5
--- libgcrypt/src/gcrypt.h:1.125.2.4 Tue Jan 4 21:50:22 2005
+++ libgcrypt/src/gcrypt.h Wed Jan 5 14:52:33 2005
@@ -346,7 +346,8 @@
GCRYCTL_ENABLE_QUICK_RANDOM = 44,
GCRYCTL_SET_RANDOM_SEED_FILE = 45,
GCRYCTL_UPDATE_RANDOM_SEED_FILE = 46,
- GCRYCTL_SET_THREAD_CBS = 47
+ GCRYCTL_SET_THREAD_CBS = 47,
+ GCRYCTL_FAST_POLL = 48
};
/* Perform various operations defined by CMD. */
@@ -1340,6 +1341,12 @@
gcry_error_t gcry_random_add_bytes (const void *buffer, size_t length,
int quality);
+/* If random numbers are used in an application, this macro should be
+ called from time to time so that new stuff gets added to the
+ internal pool of the RNG. */
+#define gcry_fast_random_poll() gcry_control (GCRYCTL_FAST_POLL, NULL)
+
+
/* Return NBYTES of allocated random using a random numbers of quality
LEVEL. */
void *gcry_random_bytes (size_t nbytes, enum gcry_random_level level)
Index: libgcrypt/src/global.c
diff -u libgcrypt/src/global.c:1.45.2.1 libgcrypt/src/global.c:1.45.2.2
--- libgcrypt/src/global.c:1.45.2.1 Wed Sep 15 12:23:04 2004
+++ libgcrypt/src/global.c Wed Jan 5 14:52:33 2005
@@ -274,6 +274,13 @@
err = ath_install (va_arg (arg_ptr, void *), any_init_done);
break;
+ case GCRYCTL_FAST_POLL:
+ /* We need to do make sure that the random pool is really
+ initialized so that the poll fucntion is not a NOP. */
+ _gcry_random_initialize (1);
+ _gcry_fast_random_poll ();
+ break;
+
default:
err = GPG_ERR_INV_OP;
}
More information about the Gnupg-commits
mailing list