[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use gnutls_privkey_import_ext
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: how to use gnutls_privkey_import_ext |
Date: |
Sun, 10 Jun 2012 20:45:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 |
On 06/10/2012 07:36 PM, Carolin Latze wrote:
> I am sorry, but this still causes me some troubles.
>
> As far as I understand it, the hash in PKCS#1 is:
>
> bytes 00 - 14: algorithm identifier + some more bytes
> bytes 15 - 20: the hash
> So I thought it might be sufficient do define a new gnutls_datum_t vdata
> with
> vdata.data = &raw_data->data[15]
> vdata.size = raw_data->size-15
Why do you do that? You're not supposed to interpret that data, just
sign it using raw RSA. You should treat it the same way you treated the
MD5+SHA1 combo in TLS 1.0.
regards,
Nikos
- Re: how to use gnutls_privkey_import_ext, (continued)
- Re: how to use gnutls_privkey_import_ext, Carolin Latze, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Nikos Mavrogiannopoulos, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Carolin Latze, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Carolin Latze, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Nikos Mavrogiannopoulos, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Carolin Latze, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Nikos Mavrogiannopoulos, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Carolin Latze, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Nikos Mavrogiannopoulos, 2012/06/10
- Re: how to use gnutls_privkey_import_ext, Carolin Latze, 2012/06/10
- Re: how to use gnutls_privkey_import_ext,
Nikos Mavrogiannopoulos <=
- Re: how to use gnutls_privkey_import_ext, Carolin Latze, 2012/06/10