<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Thanks! The moment after I sent that original email I realized in my infinite wisdom that I originally hard coded the NID value in my EVP implementation to get some testing to work. I then never went back and changed it to the define value...</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Regardless, thank you for the help.</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Rob</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
From: Short, Todd<br>
Sent: Thursday, February 23, 8:29 AM<br>
Subject: Re: [openssl-dev] Integrate EVP Cipher into OpenSSL cli Speed Test<br>
To: openssl-dev@openssl.org, Schmicker, Robert<br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Look at some of the changes to pull in Poly1305 and SipHash in to EVP: <br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
<a href="https://github.com/openssl/openssl/commit/52ad5b60e3a1fef12a1a5ea01527a90b8f92a34b">https://github.com/</a><a href="https://github.com/openssl/openssl/commit/52ad5b60e3a1fef12a1a5ea01527a90b8f92a34b">openssl</a><a href="https://github.com/openssl/openssl/commit/52ad5b60e3a1fef12a1a5ea01527a90b8f92a34b">/</a><a href="https://github.com/openssl/openssl/commit/52ad5b60e3a1fef12a1a5ea01527a90b8f92a34b">openssl</a><a href="https://github.com/openssl/openssl/commit/52ad5b60e3a1fef12a1a5ea01527a90b8f92a34b">/commit/52ad5b60e3a1fef12a1a5ea01527a90b8f92a34b</a></p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
<a href="https://github.com/openssl/openssl/commit/3f5616d734a92fdf99ab827f21e5b6cab85e7194">https://github.com/</a><a href="https://github.com/openssl/openssl/commit/3f5616d734a92fdf99ab827f21e5b6cab85e7194">openssl</a><a href="https://github.com/openssl/openssl/commit/3f5616d734a92fdf99ab827f21e5b6cab85e7194">/</a><a href="https://github.com/openssl/openssl/commit/3f5616d734a92fdf99ab827f21e5b6cab85e7194">openssl</a><a href="https://github.com/openssl/openssl/commit/3f5616d734a92fdf99ab827f21e5b6cab85e7194">/commit/3f5616d734a92fdf99ab827f21e5b6cab85e7194</a><br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
--</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
-Todd Short</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
// <a href="mailto:tshort@akamai.com">tshort</a><a href="mailto:tshort@akamai.com">@akamai.com</a></p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
// "One if by land, two if by sea, three if by the Internet."<br>
</p>
<blockquote type="cite">
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
On Feb 22, 2017, at 11:00 PM, Schmicker, Robert <<a href="mailto:rschm2@unh.newhaven.edu">rschm2</a><a href="mailto:rschm2@unh.newhaven.edu">@unh.newhaven.edu</a>> wrote:<br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Hello,<br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
I successfully managed to integrate an encryption cipher into the EVP and has been </p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
tested to work and now I'd like to get some speed tests of the cipher using openssl's </p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
integrated speed test via the command line with the "-evp" flag.<br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
What I've done so far to try and integrate it into openssl's speed test....<br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
1) Confirmed EVP_mycipher() works<br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
2) Noticed ./apps/speed.c was calling:</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
         case OPT_EVP: </p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
                         evp_cipher = EVP_get_cipherbyname(opt_arg());</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
3) Then modified ./crypto/objects/objects.txt to include the necessary defines</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
         # Mycipher<br>
                       : MYCIPHER             : mycipher</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
4) Edited crypto/evp/c_allc.c to include my cipher in the loading of all ciphers</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
EVP_add_cipher(EVP_mycipher());<br>
EVP_add_cipher_alias(SN_mycipher, "mycipher");</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
5) Ran a make update then make and saw all necessary defines were generated</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
However, the speed test cannot find my cipher because EVP_get_cipherbyname()<br>
returns NULL. </p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Am I missing a step here or did I mis-configure something?</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
It seems as if there's something to edit to tie the NID/SN/LN_mycipher to the algorithm.</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Any help is much appreciated!</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
Rob Schmicker<br>
</p>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
-- <br>
openssl-dev mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-dev">https://mta.openssl.org/mailman/</a><a href="https://mta.openssl.org/mailman/listinfo/openssl-dev">listinfo</a><a href="https://mta.openssl.org/mailman/listinfo/openssl-dev">/</a><a href="https://mta.openssl.org/mailman/listinfo/openssl-dev">openssl</a><a href="https://mta.openssl.org/mailman/listinfo/openssl-dev">-dev</a><br>
</p>
</blockquote>
<p dir="auto" style=" text-align: left; margin-top: 25px; margin-bottom: 25px; font-family: sans-serif; font-size: 11pt; color: black; background-color: white ">
<br>
<br>
</p>
</body>
</html>