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

2018-06-10 Thread Viktor Dukhovni
> On Jun 9, 2018, at 11:25 PM, Sangsub wrote: > > 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? You should not have to distinguish. The key type

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