Hi all,

I have an application that essentially performs the same purpose
as apps/enc.c and have a couple of questions. I have spent a few
days checking out enc.c and others plus googling and have checked
the mailing list archive, I also have the O'Reilly books.

1. I am calling EVP_get_cipherbyname() with a name supplied by my
user. Now the user naturally wants to know the available names. I
found this post in the mail archive;
http://marc.info/?l=openssl-users&m=107873956817083&w=2
where a similar questioner was directed to show_ciphers() and
OBJ_NAME_do_all_sorted() etc, in enc.c. Is this really the recommended
way to do this? Does this OBJ_ stuff form part of the published
API and, if so, is it documented. If this is the case, it sounds like I will need my own version of show_ciphers() to store the results rather than display them. Would this be the right way to go?

2. I have initialised my app with OpenSSL_add_allciphers(), but
many of the ciphers that "openssl enc..." can do, I get a NULL back from EVP_get_cipherbyname() when I try and use them. For example, aes-256-cbc works in my app but des-ede3-cfb doesn't. I can't see what else enc.c is doing to bring in these extra ciphers. Of course, if I had the answer to 1, I could dump out my available cipher list which might help.

Many thanks in advance,

Steve
--
------------------------------------------------------------
Steve Chaplin
steve.chap...@coppereye.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to