<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">The example is wrong.<div class=""><br class=""></div><div class="">The KDF API changed recently to better match the way the rest of the project is moving.</div><div class="">I’ll update the example.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Pauli<br class=""><div class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">-- <br class="">Dr Paul Dale | Distinguished Architect | Cryptographic Foundations <br class="">Phone +61 7 3031 7217<br class="">Oracle Australia</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>

<div><br class=""><blockquote type="cite" class=""><div class="">On 15 Sep 2019, at 7:28 am, Bhuvan Sharma <<a href="mailto:erbsharma021@gmail.com" class="">erbsharma021@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="" class="">Hey all,</span><div style="" class="">I'm new to openssl community and I don't know much about it. I tried to use openssl on my linux machine. I clone openssl git repo and executed these commands as mentioned in the file "INSTALL": "./config", "make", "make test", "make install". It went alright. Then I tried an "EVP KEY Derivation" example from this link: <a href="https://wiki.openssl.org/index.php?title=EVP_Key_Derivation&redirect=no#targetText=HKDF%20was%20designed%20by%20Krawczyk,from%20the%20OpenSSL%20man%20pages" target="_blank" class="">https://wiki.openssl.org/index.php?title=EVP_Key_Derivation&redirect=no#targetText=HKDF%20was%20designed%20by%20Krawczyk,from%20the%20OpenSSL%20man%20pages</a>. But it gives me some error for undeclared function. </div><div style="" class=""><font color="#ff0000" class="">~/openssl$ gcc -std=c99 test.c -o test.exe -l:libcrypto.a -pthread -ldl<br class="">test.c: In function ‘main’:<br class="">test.c:12:17: warning: implicit declaration of function ‘EVP_KDF_CTX_new_id’; did you mean ‘EVP_KDF_CTX_new’? [-Wimplicit-function-declaration]<br class="">     if ((kctx = EVP_KDF_CTX_new_id(EVP_KDF_HKDF)) == NULL) {<br class="">                 ^~~~~~~~~~~~~~~~~~<br class="">                 EVP_KDF_CTX_new<br class="">test.c:12:36: error: ‘EVP_KDF_HKDF’ undeclared (first use in this function); did you mean ‘EVP_PKEY_HKDF’?<br class="">     if ((kctx = EVP_KDF_CTX_new_id(EVP_KDF_HKDF)) == NULL) {<br class="">                                    ^~~~~~~~~~~~<br class="">                                    EVP_PKEY_HKDF<br class="">test.c:12:36: note: each undeclared identifier is reported only once for each function it appears in<br class="">test.c:13:9: warning: implicit declaration of function ‘error’; did you mean ‘perror’? [-Wimplicit-function-declaration]<br class="">         error("EVP_KDF_CTX_new_id");<br class="">         ^~~~~<br class="">         perror<br class="">test.c:15:9: warning: implicit declaration of function ‘EVP_KDF_ctrl’; did you mean ‘EVP_KDF_size’? [-Wimplicit-function-declaration]<br class="">     if (EVP_KDF_ctrl(kctx, EVP_KDF_CTRL_SET_MD, EVP_sha256()) <= 0) {<br class="">         ^~~~~~~~~~~~<br class="">         EVP_KDF_size</font><br class=""></div><div style="" class=""><br class=""></div><div style="" class="">Is there any problem with the installation or am I missing something else?</div><div style="" class="">Your help is much appreciated.</div><div style="" class=""><br class=""></div><div style="" class="">Thanks & Regards,</div><div style="" class="">Bhuvan Sharma</div></div>
</div></blockquote></div><br class=""></div></div></body></html>