Ger Hobbelt said the following on 01/09/09 17:34:

On Fri, Jan 9, 2009 at 10:20 AM, Steve Chaplin
<steve.chap...@coppereye.com> wrote:

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.

OBJ_NAME_* is part of the API (and resides in crypto/objects/ ); alas,
it lacks a pod/manpage document at the moment.
OK. Thanks. I'll go ahead and use the API then.

You may use it, but may I point you at the more modern 'wrapper'
functions EVP_CIPHER_do_all*(), EVP_MD_do_all*(), etc. which take care
of defining the proper type for picking the proper sort of crypto
element (cipher, hash, etc.) according to the OBJ_NAME_TYPE_* #defines
in <openssl/objects.h>?
>
> A usage sample of those can be found in apps/openssl.c
I took a look in 0.9.8j, but could find no mention of such functions either in openssl.c or any of the distributed headers/code. Is this modern wrapper more bleeding edge than this?

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 take it you meant     
        OpenSSL_add_all_algorithms();
Well, perhaps that was the answer as I can now use all the ciphers.

One reason why some ciphers won't show up is related to the
configuration of the OpenSSL lib on compilation
But that would affect the utility 'openssl enc' as well right? As I said though, I can now use all the available ciphers.

Anyway, thanks to your help, my application is now working as I require it.

Dank u wel

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