help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RSA sign/verify and hash generation functions


From: Nikos Mavrogiannopoulos
Subject: Re: RSA sign/verify and hash generation functions
Date: Wed, 08 Dec 2010 23:22:55 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10

On 12/08/2010 09:17 PM, Murray S. Kucherawy wrote:
> Here's something interesting I found while trying to figure this out.
> % openssl rsa -in key.pem -text
> Private-Key: (1024 bit)
> modulus:
>     00:b8:19:41:ab:f9:df:fa:48:53:73:54:b6:29:a6:
[...]
> ...and then dumping the modulus and private exponent through code that uses 
> the same format as OpenSSL:> 
> modulus:
>     b8:19:41:ab:f9:df:fa:48:53:73:54:b6:29:a6:19:
> Note that when using GnuTLS, the leading "00" octet in the modulus is missing.
> Is this expected?  Could it explain the different signature I get from
GnuTLS 2.11.6?

The export_raw() functions do not add the leading zero. Adding them
would be better (and I'll modify them to do), but it doesn't explain the
different signature.

regards,
Nikos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]