diff options
author | Werner Koch <wk@gnupg.org> | 2013-03-07 19:04:10 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-03-07 20:41:49 +0100 |
commit | 6c4767637c512127a4362732b3ec51068554d328 (patch) | |
tree | f991d86356e90068b3ad915efa237ba4b09ef3b3 /doc | |
parent | 6782b2d7817c449fb2cf122cacd792b594f89d7c (diff) | |
download | libgcrypt-6c4767637c512127a4362732b3ec51068554d328.tar.gz |
mpi: Add mpi_snatch and change an internal typedef.
* src/mpi.h (struct mpi_point_s): Rename to struct gcry_mpi_point.
(mpi_point_struct): New typedef.
(mpi_point_t): Change typedef to a pointer. Replace all occurrences
to use mpi_point_struct.
* mpi/ec.c (_gcry_mpi_ec_point_init): Rename to ..
(_gcry_mpi_point_init): this. Change all callers.
(_gcry_mpi_ec_point_free): Rename to ..
(_gcry_mpi_point_free_parts): this. Change all callers.
* mpi/mpiutil.c (gcry_mpi_snatch): New function.
* src/gcrypt.h.in (gcry_mpi_snatch, mpi_snatch): Add protoype and
macro.
* src/visibility.c (gcry_mpi_snatch): Add wrapper.
* src/visibility.h (gcry_mpi_snatch): Add macro magic.
* src/libgcrypt.def, src/libgcrypt.vers: Add new function.
--
This patch is a prerequisite to implement a public point API. The new
function gcry_mpi_snatch is actually not needed for this but is useful
anyway and will be used to implement the point API.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gcrypt.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi index fa24defb..8bfcbfde 100644 --- a/doc/gcrypt.texi +++ b/doc/gcrypt.texi @@ -3600,6 +3600,13 @@ small values (usually up to the word size of the CPU). Swap the values of @var{a} and @var{b}. @end deftypefun +@deftypefun void gcry_mpi_snatch (@w{gcry_mpi_t @var{w}}, @ + @w{const gcry_mpi_t @var{u}}) + +Set @var{u} into @var{w} and release @var{u}. If @var{w} is +@code{NULL} only @var{u} will be released. +@end deftypefun + @node MPI formats @section MPI formats |