[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] pki_crypto: pad RSA signature blobs
[Thread Prev] | [Thread Next]
- Subject: Re: [PATCH] pki_crypto: pad RSA signature blobs
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 20 Jan 2014 10:26:41 +0100
- To: libssh@xxxxxxxxxx
Hi Jon,
Thanks for your patch. I was skeptic until I read your reference links,
thanks for including them.
Could you just tweak your patch to remove the NULL tests ?
ssh_string_data is guaranteed to return non-NULL by construction. With
this you can also remove the paderrout: label.
Regards,
Aris
Le 20/01/14 04:08, Jon Simons a écrit :
> + blob_padded_data = (char *) ssh_string_data(sig_blob_padded);
> + if (blob_padded_data == NULL) {
> + goto paderrout;
> + }
> +
> + blob_orig = (char *) ssh_string_data(sig_blob);
> + if (blob_orig == NULL) {
> + goto paderrout;
> + }
| Re: [PATCH] pki_crypto: pad RSA signature blobs | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
| Re: [PATCH] pki_crypto: pad RSA signature blobs | Jon Simons <jon@xxxxxxxxxxxxx> |
| [PATCH] pki_crypto: pad RSA signature blobs | Jon Simons <jon@xxxxxxxxxxxxx> |