[svn] gcry - r1299 - in trunk: . doc mpi src
svn author wk
cvs at cvs.gnupg.org
Tue Aug 19 18:59:17 CEST 2008
Author: wk
Date: 2008-08-19 18:59:15 +0200 (Tue, 19 Aug 2008)
New Revision: 1299
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/README
trunk/TODO
trunk/configure.ac
trunk/doc/gcrypt.texi
trunk/mpi/ChangeLog
trunk/mpi/mpi-bit.c
trunk/src/ChangeLog
trunk/src/gcrypt.h.in
trunk/src/libgcrypt.def
trunk/src/libgcrypt.vers
trunk/src/mpi.h
trunk/src/visibility.c
trunk/src/visibility.h
Log:
Adding gcry_mpi_lshift.
Preparing a release candidate.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/ChangeLog 2008-08-19 16:59:15 UTC (rev 1299)
@@ -1,3 +1,9 @@
+2008-08-19 Werner Koch <wk at g10code.com>
+
+ Release 1.4.2rc1.
+
+ * configure.ac: Bump LT version to C16/A5/R0.
+
2008-08-18 Werner Koch <wk at g10code.com>
* Makefile.am (EXTRA_DIST): Remove the unused BUGS file.
Modified: trunk/mpi/ChangeLog
===================================================================
--- trunk/mpi/ChangeLog 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/mpi/ChangeLog 2008-08-19 16:59:15 UTC (rev 1299)
@@ -1,3 +1,7 @@
+2008-08-19 Werner Koch <wk at g10code.com>
+
+ * mpi-bit.c (gcry_mpi_lshift): New.
+
2007-10-31 Werner Koch <wk at g10code.com>
* mpi-mod.c (gcry_mpi_mod): Remove
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/src/ChangeLog 2008-08-19 16:59:15 UTC (rev 1299)
@@ -1,3 +1,8 @@
+2008-08-19 Werner Koch <wk at g10code.com>
+
+ * visibility.c, visibility.h (gcry_mpi_lshift): New.
+ * libgcrypt.vers, libgcrypt.def, gcrypt.h.in: Ditto.
+
2008-08-15 Werner Koch <wk at g10code.com>
* gcrypt.h.in (gcry_cipher_setkey): Replace macro by function.
@@ -1899,7 +1904,7 @@
Copyright (C) 1998,1999,2000,2001,2002,2003
- 2004, 2005 Free Software Foundation, Inc.
+ 2004, 2005, 2008 Free Software Foundation, Inc.
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/NEWS 2008-08-19 16:59:15 UTC (rev 1299)
@@ -1,15 +1,20 @@
-Noteworthy changes in version 1.4.2
+Noteworthy changes in version 1.4.2 (unreleased)
------------------------------------------------
- * The library may now be switched into a FIPS mode.
+ * The library may now be switched into a FIPS mode. Note that this
+ mode is not yet fully working in 1.4.2rc1.
* More runtime selftests.
* A few macros have been replaced by functions for better type
checking.
- * The thread initialiation structure now carries version information.
+ * The thread initialization structure now carries version
+ information.
+ * The long missing gcry_mpi_lshift function has been added. Note
+ that it is not yet working in 1.4.2rc1.
+
* Interface changes relative to the 1.3.0 release:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GCRYCTL_OPERATIONAL_P NEW.
@@ -18,6 +23,7 @@
gcry_cipher_setkey NEW: Replaces macro.
gcry_cipher_setiv NEW: Replaces macro.
gcry_cipher_setctr NEW: Replaces macro.
+ gcry_mpi_lshift NEW.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modified: trunk/README
===================================================================
--- trunk/README 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/README 2008-08-19 16:59:15 UTC (rev 1299)
@@ -1,6 +1,8 @@
libgcrypt - The GNU crypto library
------------------------------------
- Version 1.4.1
+ Version 1.4.2rc1
+
+ *** Warning: RELEASE CANDIDATE ***
Copyright 2000, 2002, 2003, 2004, 2007,
2008 Free Software Foundation, Inc.
Modified: trunk/TODO
===================================================================
--- trunk/TODO 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/TODO 2008-08-19 16:59:15 UTC (rev 1299)
@@ -84,8 +84,6 @@
* mpi_print does not use secure memory
for internal variables.
-* gcry_mpi_lshift is missing
-
* Add OAEP
* gcryptrnd.c
@@ -110,4 +108,5 @@
We have some code to allow using libgcrypt from C++, so we also
should have a test case.
-* Use aliases for symbol instead of the wrappers in visibility.c.
+* gcry_mpi_lshift needs actual code.
+
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/configure.ac 2008-08-19 16:59:15 UTC (rev 1299)
@@ -26,8 +26,8 @@
# Remember to change the version number immediately *after* a release.
# Set my_issvn to "yes" for non-released code. Remember to run an
# "svn up" and "autogen.sh" right before creating a distribution.
-m4_define([my_version], [1.4.2])
-m4_define([my_issvn], [yes])
+m4_define([my_version], [1.4.2rc1])
+m4_define([my_issvn], [no])
m4_define([svn_revision], m4_esyscmd([echo -n $( (svn info 2>/dev/null \
|| echo 'Revision: 0')|sed -n '/^Revision:/ {s/[^0-9]//gp;q;}')]))
@@ -38,9 +38,9 @@
# (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
# (Interfaces added: CURRENT++, AGE++, REVISION=0)
# (No interfaces changed: REVISION++)
-LIBGCRYPT_LT_CURRENT=15
-LIBGCRYPT_LT_AGE=4
-LIBGCRYPT_LT_REVISION=4
+LIBGCRYPT_LT_CURRENT=16
+LIBGCRYPT_LT_AGE=5
+LIBGCRYPT_LT_REVISION=0
# If the API is changed in an incompatible way: increment the next counter.
Modified: trunk/doc/gcrypt.texi
===================================================================
--- trunk/doc/gcrypt.texi 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/doc/gcrypt.texi 2008-08-19 16:59:15 UTC (rev 1299)
@@ -67,7 +67,7 @@
* Handler Functions:: Working with handler functions.
* Symmetric cryptography:: How to use symmetric cryptography.
* Public Key cryptography:: How to use public key cryptography.
-* Hashing:: How to use hashing.
+* Hashing:: How to use hash and MAC algorithms.
* Random Numbers:: How to work with random numbers.
* S-expressions:: How to manage S-expressions.
* MPI library:: How to work with multi-precision-integers.
@@ -102,6 +102,7 @@
@c **********************************************************
@node Introduction
@chapter Introduction
+
Libgcrypt is a library providing cryptographic building blocks.
@menu
@@ -3200,12 +3201,11 @@
@node Hashing
@chapter Hashing
-Libgcrypt provides an easy and consistent to use interface
-for hashing. Hashing is buffered and several hash algorithms can be
-updated at once. It is possible to calculate a MAC using the same
-routines. The programming model follows an open/process/close
-paradigm and is in that similar to other building blocks provided by
-Libgcrypt.
+Libgcrypt provides an easy and consistent to use interface for hashing.
+Hashing is buffered and several hash algorithms can be updated at once.
+It is possible to compute a MAC using the same routines. The
+programming model follows an open/process/close paradigm and is in that
+similar to other building blocks provided by Libgcrypt.
For convenience reasons, a few cyclic redundancy check value operations
are also supported.
Modified: trunk/mpi/mpi-bit.c
===================================================================
--- trunk/mpi/mpi-bit.c 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/mpi/mpi-bit.c 2008-08-19 16:59:15 UTC (rev 1299)
@@ -297,6 +297,16 @@
}
+/*
+ * Shift A by N bits to the left.
+ */
+void
+gcry_mpi_lshift ( gcry_mpi_t x, gcry_mpi_t a, unsigned int n )
+{
+ BUG (); /* Not yet implemented in 1.4.2rc1 but will be soon. */
+}
+
+
/****************
* Shift A by COUNT limbs to the right
* This is used only within the MPI library
Modified: trunk/src/gcrypt.h.in
===================================================================
--- trunk/src/gcrypt.h.in 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/src/gcrypt.h.in 2008-08-19 16:59:15 UTC (rev 1299)
@@ -708,6 +708,9 @@
/* Shift the value of A by N bits to the right and store the result in X. */
void gcry_mpi_rshift (gcry_mpi_t x, gcry_mpi_t a, unsigned int n);
+/* Shift the value of A by N bits to the left and store the result in X. */
+void gcry_mpi_lshift (gcry_mpi_t x, gcry_mpi_t a, unsigned int n);
+
/* Store NBITS of the value P points to in A and mark A as an opaque
value. WARNING: Never use an opaque MPI for anything thing else then
gcry_mpi_release, gcry_mpi_get_opaque. */
@@ -773,6 +776,7 @@
#define mpi_clear_bit(a,b) gcry_mpi_clear_bit ((a),(b))
#define mpi_clear_highbit(a,b) gcry_mpi_clear_highbit ((a),(b))
#define mpi_rshift(a,b,c) gcry_mpi_rshift ((a),(b),(c))
+#define mpi_lshift(a,b,c) gcry_mpi_lshift ((a),(b),(c))
#define mpi_set_opaque(a,b,c) gcry_mpi_set_opaque( (a), (b), (c) )
#define mpi_get_opaque(a,b) gcry_mpi_get_opaque( (a), (b) )
Modified: trunk/src/libgcrypt.def
===================================================================
--- trunk/src/libgcrypt.def 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/src/libgcrypt.def 2008-08-19 16:59:15 UTC (rev 1299)
@@ -230,6 +230,8 @@
gcry_cipher_setkey @188
gcry_cipher_setiv @189
gcry_cipher_setctr @190
+
+ gcry_mpi_lshift @191
+
-
Modified: trunk/src/libgcrypt.vers
===================================================================
--- trunk/src/libgcrypt.vers 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/src/libgcrypt.vers 2008-08-19 16:59:15 UTC (rev 1299)
@@ -100,6 +100,7 @@
gcry_mpi_set_flag; gcry_mpi_set_highbit; gcry_mpi_set_opaque;
gcry_mpi_set_ui; gcry_mpi_snew; gcry_mpi_sub; gcry_mpi_sub_ui;
gcry_mpi_subm; gcry_mpi_swap; gcry_mpi_test_bit;
+ gcry_mpi_lshift;
local:
*;
Modified: trunk/src/mpi.h
===================================================================
--- trunk/src/mpi.h 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/src/mpi.h 2008-08-19 16:59:15 UTC (rev 1299)
@@ -219,6 +219,7 @@
#define mpi_clear_bit(a,b) gcry_mpi_clear_bit ((a),(b))
#define mpi_clear_highbit(a,b) gcry_mpi_clear_highbit ((a),(b))
#define mpi_rshift(a,b,c) gcry_mpi_rshift ((a),(b),(c))
+#define mpi_lshift(a,b,c) gcry_mpi_lshift ((a),(b),(c))
void _gcry_mpi_normalize( gcry_mpi_t a );
Modified: trunk/src/visibility.c
===================================================================
--- trunk/src/visibility.c 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/src/visibility.c 2008-08-19 16:59:15 UTC (rev 1299)
@@ -457,6 +457,12 @@
_gcry_mpi_rshift (x, a, n);
}
+void
+gcry_mpi_lshift (gcry_mpi_t x, gcry_mpi_t a, unsigned int n)
+{
+ _gcry_mpi_lshift (x, a, n);
+}
+
gcry_mpi_t
gcry_mpi_set_opaque (gcry_mpi_t a, void *p, unsigned int nbits)
{
Modified: trunk/src/visibility.h
===================================================================
--- trunk/src/visibility.h 2008-08-19 16:25:30 UTC (rev 1298)
+++ trunk/src/visibility.h 2008-08-19 16:59:15 UTC (rev 1299)
@@ -214,6 +214,7 @@
#define gcry_mpi_randomize _gcry_mpi_randomize
#define gcry_mpi_release _gcry_mpi_release
#define gcry_mpi_rshift _gcry_mpi_rshift
+#define gcry_mpi_lshift _gcry_mpi_lshift
#define gcry_mpi_scan _gcry_mpi_scan
#define gcry_mpi_set _gcry_mpi_set
#define gcry_mpi_set_bit _gcry_mpi_set_bit
@@ -468,6 +469,7 @@
#undef gcry_mpi_randomize
#undef gcry_mpi_release
#undef gcry_mpi_rshift
+#undef gcry_mpi_lshift
#undef gcry_mpi_scan
#undef gcry_mpi_set
#undef gcry_mpi_set_bit
@@ -679,6 +681,7 @@
MARK_VISIBLE (gcry_mpi_randomize)
MARK_VISIBLE (gcry_mpi_release)
MARK_VISIBLE (gcry_mpi_rshift)
+MARK_VISIBLE (gcry_mpi_lshift)
MARK_VISIBLE (gcry_mpi_scan)
MARK_VISIBLE (gcry_mpi_set)
MARK_VISIBLE (gcry_mpi_set_bit)
More information about the Gnupg-commits
mailing list