|
From: | Mads Kiilerich |
Subject: | Raw RSA encryption |
Date: | Sat, 24 Jul 2010 03:07:34 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100624 Fedora/3.1-1.fc13 Thunderbird/3.1 |
HiThe new gnutls/crypto.h exposes fine functionality for using stream/block ciphers and hash algorithms directly.
But I also need raw RSA encryption and can't figure out how to do it - or if it is possible. I just need the basic modulo-exponentiation, for example with values from gnutls_x509_crt_get_pk_rsa_raw.
It seems like it is possible to register such a function with gnutls_crypto_pk_register2, but there is no way to retrieve the internal implementation? Or is it OK to use _gnutls_pk_ops.encrypt?
Or should I access gcrypt directly, possibly by duplicating the content of _wrap_gcry_pk_encrypt?
(In either case it seems like I need to figure out how the simple bigendian format of gnutls_datum_t from gnutls_x509_crt_get_pk_rsa_raw relates to bigint_t?)
/Mads
[Prev in Thread] | Current Thread | [Next in Thread] |