On Mon, Sep 07, 2009, Einar Thorsrud wrote:

> Hi all,
> 
> I am having some trouble finding a library/API function which makes it
> possible to specify the public (or private) encryption key as a Hex
> string.
> 
> PEM_read_bio_RSA_PUBKEY will not do it for me, as I do not have a
> PEM-file. My alternative is to insert the data directly into the rsa_st
> struct, but I am guessing there is a library function for this? Could
> someone point me to this function if it exists, or perhaps some other
> examples on how this is done?
> 

Currently you have to set the key components manually in the RSA structure.
The only alternative is to use the mini-ASN1 compiler to generate the
appropriate structure, there are some examples in the manual pages.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to