[openssl-dev] Integrate EVP Cipher into OpenSSL cli Speed Test

Schmicker, Robert rschm2 at unh.newhaven.edu
Thu Feb 23 04:00:52 UTC 2017


Hello,


I successfully managed to integrate an encryption cipher into the EVP and has been

tested to work and now I'd like to get some speed tests of the cipher using openssl's

integrated speed test via the command line with the "-evp" flag.


What I've done so far to try and integrate it into openssl's speed test....


1) Confirmed EVP_mycipher() works


2) Noticed ./apps/speed.c was calling:

         case OPT_EVP:

                         evp_cipher = EVP_get_cipherbyname(opt_arg());

3) Then modified ./crypto/objects/objects.txt to include the necessary defines
         # Mycipher
                       : MYCIPHER             : mycipher

4) Edited crypto/evp/c_allc.c to include my cipher in the loading of all ciphers

EVP_add_cipher(EVP_mycipher());
EVP_add_cipher_alias(SN_mycipher, "mycipher");

5) Ran a make update then make and saw all necessary defines were generated

However, the speed test cannot find my cipher because EVP_get_cipherbyname()
returns NULL.

Am I missing a step here or did I mis-configure something?

It seems as if there's something to edit to tie the NID/SN/LN_mycipher to the algorithm.

Any help is much appreciated!

Rob Schmicker

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20170223/4eb7a0fc/attachment.html>


More information about the openssl-dev mailing list