Re: Decrypt error when using openssl 1.1.1b during SSL handshake

2020-11-02 Thread Matt Caswell
On 02/11/2020 09:00, Mahendra SP wrote: > Hi Matt, > > Error is reported from this: > FILE:../openssl-1.1.1b/ssl/statem/statem_srvr.c, FUNCTION:415, > LINE:3055, reason=147, alert=51 > > We see that hardware is returning 48 bytes. Even if the decrypted > premaster data is correct, openssl is e

Re: Decrypt error when using openssl 1.1.1b during SSL handshake

2020-11-02 Thread Mahendra SP
Hi Matt, Error is reported from this: FILE:../openssl-1.1.1b/ssl/statem/statem_srvr.c, FUNCTION:415, LINE:3055, reason=147, alert=51 We see that hardware is returning 48 bytes. Even if the decrypted premaster data is correct, openssl is expecting more than 48 bytes in return. This check fails as

Re: Decrypt error when using openssl 1.1.1b during SSL handshake

2020-10-30 Thread Matt Caswell
On 30/10/2020 11:22, Mahendra SP wrote: > Hi Matt, > > Thank you for the inputs. > Yes, we had encountered the padding issue initially. But we added > support for RSA_NO_PADDING in our hardware. That's why we are able to > successfully decrypt the premaster secret in the hardware. > Hence the i

Re: Decrypt error when using openssl 1.1.1b during SSL handshake

2020-10-30 Thread Mahendra SP
Hi Matt, Thank you for the inputs. Yes, we had encountered the padding issue initially. But we added support for RSA_NO_PADDING in our hardware. That's why we are able to successfully decrypt the premaster secret in the hardware. Hence the issue does not seem to be related to padding. We have conf

Re: Decrypt error when using openssl 1.1.1b during SSL handshake

2020-10-30 Thread Matt Caswell
On 30/10/2020 09:18, Mahendra SP wrote: > Hi All. > > We have upgraded openssl version to 1.1.1b > > With this, we are seeing decryption error during SSL handshake for the > below explained scenario. Our device acts as an SSL server. > > We have external hardware to offload RSA private key op

Decrypt error when using openssl 1.1.1b during SSL handshake

2020-10-30 Thread Mahendra SP
Hi All. We have upgraded openssl version to 1.1.1b With this, we are seeing decryption error during SSL handshake for the below explained scenario. Our device acts as an SSL server. We have external hardware to offload RSA private key operations using the engine. Decryption of pre-master secret