mpi: Add an API for EC point operations.
authorWerner Koch <wk@gnupg.org>
Fri, 8 Mar 2013 14:06:20 +0000 (15:06 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 8 Mar 2013 14:06:20 +0000 (15:06 +0100)
commit7cce620acddac2df024ca421ed3abc32a88f3738
treeaf383a2c6c3b2827f4fdecdc33efbe64cf781430
parent6c4767637c512127a4362732b3ec51068554d328
mpi: Add an API for EC point operations.

* mpi/ec.c (gcry_mpi_point_new, gcry_mpi_point_release): New.
(gcry_mpi_point_get, gcry_mpi_point_snatch_get): New.
(gcry_mpi_point_set, gcry_mpi_point_snatch_set): New.
* src/visibility.h, src/visibility.c: Add corresponding macros and
wrappers.
* src/gcrypt.h.in (struct gcry_mpi_point, gcry_mpi_point_t): New.
(gcry_mpi_point_new, gcry_mpi_point_release, gcry_mpi_point_get)
(gcry_mpi_point_snatch_get, gcry_mpi_point_set)
(gcry_mpi_point_snatch_set): New prototypes.
(mpi_point_new, mpi_point_release, mpi_point_get, mpi_point_snatch_get)
(mpi_point_set, mpi_point_snatch_set): New macros.
* src/libgcrypt.vers (gcry_mpi_point_new, gcry_mpi_point_release)
(gcry_mpi_point_get, gcry_mpi_point_snatch_get, gcry_mpi_point_set)
(gcry_mpi_point_snatch_set): New symbols.
* src/libgcrypt.def: Ditto.
* tests/t-mpi-point.c: New.
* tests/Makefile.am (TESTS): Add t-mpi-point
NEWS
mpi/ec.c
src/gcrypt.h.in
src/libgcrypt.def
src/libgcrypt.vers
src/visibility.c
src/visibility.h
tests/Makefile.am
tests/t-mpi-point.c [new file with mode: 0644]