<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello,</p>
<p><br>
</p>
<p>I successfully managed to integrate an encryption cipher into the EVP and has been
<br>
</p>
<p>tested to work and now I'd like to get some speed tests of the cipher using openssl's
<br>
</p>
<p>integrated speed test via the command line with the "-evp" flag.</p>
<p><br>
</p>
<p>What I've done so far to try and integrate it into openssl's speed test....</p>
<p><br>
</p>
<p>1) Confirmed EVP_mycipher() works</p>
<p><br>
</p>
<p>2) Noticed ./apps/speed.c was calling:</p>
<p>         <span class="pl-k">case</span> OPT_EVP: <br>
</p>
<div>                         evp_cipher = <span class="pl-c1">EVP_get_cipherbyname</span>(<span class="pl-c1">opt_arg</span>());<br>
<br>
3) Then modified ./crypto/objects/objects.txt to include the necessary defines<br>
<div>         # Mycipher<br>
         !Alias myc 1<br>
         !Cname myc<br>
         myc 1                 : MYCIPHER             : mycipher<br>
<br>
4) Ran a make update then make and saw all necessary defines were generated<br>
<br>
However, the speed test cannot find my cipher because <span class="pl-c1">EVP_get_cipherbyname</span>()<br>
returns NULL. But... in a separate test.c file when I use<span class="pl-c1"> EVP_get_cipherbynid</span>()
<br>
using mycipher's NID value it finds it.<br>
<br>
Any idea why the EVP is able to find my cipher via NID but not by name?<br>
<br>
Any help is much appreciated!<br>
<br>
Rob Schmicker<br>
</div>
<br>
</div>
<br>
<p></p>
</div>
</body>
</html>