Re: [openssl-users] An error occurred while using the d2i_RSAPublicKey function.

2018-06-09 Thread Sangsub
Thank you viktor, Actually, I'm begginer so I don't know well. You said that the my input data is not a PKCS # 1 public key type. How do I distinguish between a PKCS # 1 type or an X.509 SPKI Public Key? -- Sent from: http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html -- openssl-users mai

Re: [openssl-users] An error occurred while using the d2i_RSAPublicKey function.

2018-06-09 Thread Viktor Dukhovni
> On Jun 9, 2018, at 8:38 PM, Sangsub wrote: > > I have written the following test code, and an error has occurred in the > d2i_RSAPublicKey function. > A null pointer is returned as the result of the d2i_RSAPublicKey function. Your input data is not a PKCS#1 RSA public key as understood by d

[openssl-users] An error occurred while using the d2i_RSAPublicKey function.

2018-06-09 Thread Sangsub
I am getting RSA publickey from the server. I need to extract the modulus and public exponent from the key to do the RSA operation. I have to solve with C language code, not shell command. I have written the following test code, and an error has occurred in the d2i_RSAPublicKey function. A null p

Re: [openssl-users] Error compiling openssh with openssl

2018-06-09 Thread Viktor Dukhovni
> On Jun 9, 2018, at 1:35 PM, Sandeep Deshpande wrote: > > We have compiled and built older version (6.2p2) of openssh with 1.0.2j > version of openssl. > When the system in is crypto mode, we are getting the following error when a > user logs in : > " > OpenSSL internal error, assertion fa

[openssl-users] Error compiling openssh with openssl

2018-06-09 Thread Sandeep Deshpande
Hi, We have compiled and built older version (6.2p2) of openssh with 1.0.2j version of openssl. When the system in is crypto mode, we are getting the following error when a user logs in : " *OpenSSL internal error, assertion failed: Low level API call to digest SHA256 forbidden in FIPS mode " * H