Mailing List Archive

gcry_ac_ API
Hello,
I wanted to reimplement the gnutls RSA encryption using the gcry_ac_
interface (to avoid sexp) stuff. However I noticed that the info pages for the
gcry_ac_ functions is really limited in information. I understood that
I need to start a new data set, and import my mpis there... how is that name
used with respect to mpis I add? I suspect it should be "e", "m" or
something, but it is not clear in the documentation. Also in ac_data_set()
documentation it is not defined in the manual what's the behavior if the
flags GCRY_AC_FLAG_DATA_DEALLOC and GCRY_AC_FLAG_DATA_COPY
are not used (i.e. set 0). Is it the obvious (no action)?


There is a nice example that generates a key... but then it finishes there.
No explanation on how to export the mpis produced. The documentation is
nice but looks quite incomplete. Some examples for common uses, such
as encryption and decryption of data, and some import/export from mpis to
internal formats would make it easier to understand.

regards,
Nikos

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: gcry_ac_ API [ In reply to ]
On Thu, 25 Oct 2007 20:38, n.mavrogiannopoulos@gmail.com said:

> I wanted to reimplement the gnutls RSA encryption using the gcry_ac_
> interface (to avoid sexp) stuff. However I noticed that the info pages for the

Don't do that. The AC interface as known problems and leaks memory. It
is not easy to fix and might even be removed with the next API break (if
that ever happens).


Salam-Shalom,

Werner


--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: gcry_ac_ API [ In reply to ]
On Friday 26 October 2007, Werner Koch wrote:
> On Thu, 25 Oct 2007 20:38, n.mavrogiannopoulos@gmail.com said:
> > I wanted to reimplement the gnutls RSA encryption using the gcry_ac_
> > interface (to avoid sexp) stuff. However I noticed that the info pages
> > for the
>
> Don't do that. The AC interface as known problems and leaks memory. It
> is not easy to fix and might even be removed with the next API break (if
> that ever happens).

saved by the bell :)


regards,
Nikos

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: gcry_ac_ API [ In reply to ]
On Fri, 26 Oct 2007 15:22, n.mavrogiannopoulos@gmail.com said:

> saved by the bell :)

BTW, I just released libgcrypt 1.3.1. It works fine on Windows now and
I checked that the RNG on Vista seems to work.


Salam-Shalom,

Werner



--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel