Raw RSA encryption

Nikos Mavrogiannopoulos nmav at gnutls.org
Sun Jul 25 09:41:40 CEST 2010


On 07/25/2010 04:33 AM, Mads Kiilerich wrote:

>>> The 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.
>> I question might be, why you want to do that? GnuTLS tries to hide that
>> by providing high level functions to manage certificates and keys.
> 
> I'm trying to use GnuTLS for the MS RDP protocol which both have a TLS
> mode and a homebrew mode where certificates and rc4 and md5 and sha and
> RSA is used in a different way.
> 
> I'm obviously trying to use GnuTLS for something it wasn't intended for.
> I assume that the new crypto.h stuff also don't have any use if GnuTLS
> is used for what it was intended to be used for through high level
> functions. Apparently PK stuff was left out from crypto.h. I wonder why
> you stopped there, but it is fair enough if that is how you want it.

If the internal API is good for you and you send me some wrappers over
that I'll include them.

regards,
Nikos





More information about the Gnutls-help mailing list