{"id":4122,"date":"2022-12-20T17:39:27","date_gmt":"2022-12-20T20:39:27","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/evp_kdf_pbkdf2-man7\/"},"modified":"2022-12-20T17:39:27","modified_gmt":"2022-12-20T20:39:27","slug":"evp_kdf_pbkdf2-man7","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/evp_kdf_pbkdf2-man7\/","title":{"rendered":"EVP_KDF_PBKDF2 (man7)"},"content":{"rendered":"<h1 align=\"center\">EVP_KDF_PBKDF2<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#CONFORMING TO\">CONFORMING TO<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">EVP_KDF_PBKDF2 \u2212 The PBKDF2 EVP_KDF implementation<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Support for computing the <b><small>PBKDF2<\/small><\/b> password-based <small>KDF<\/small> through the <b><small>EVP_KDF<\/small><\/b> <small>API.<\/small><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <small>EVP_KDF_PBKDF2<\/small> algorithm implements the <small>PBKDF2<\/small> password-based key derivation function, as described in <small>RFC 2898<\/small> ; it derives a key from a password using a salt and iteration count.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Numeric identity <small><br \/> EVP_KDF_PBKDF2<\/small><\/b> is the numeric identity for this implementation; it can be used with the <b>EVP_KDF_CTX_new_id()<\/b> function.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Supported controls<\/b> <br \/> The supported controls are: <b><small><br \/> EVP_KDF_CTRL_SET_PASS <br \/> EVP_KDF_CTRL_SET_SALT <br \/> EVP_KDF_CTRL_SET_ITER <br \/> EVP_KDF_CTRL_SET_MD<\/small><\/b><\/p>\n<p style=\"margin-left:17%;\">These controls work as described in &#8221; <small>CONTROLS&#8221;<\/small> in <b><small>EVP_KDF_CTX<\/small><\/b> (3).<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><b>iter<\/b> is the iteration count and its value should be greater than or equal to 1. <small>RFC 2898<\/small> suggests an iteration count of at least 1000. The default value is 2048. Any <b>iter<\/b> less than 1 is treated as a single iteration.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">A typical application of this algorithm is to derive keying material for an encryption algorithm from a password in the <b>pass<\/b>, a salt in <b>salt<\/b>, and an iteration count.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Increasing the <b>iter<\/b> parameter slows down the algorithm which makes it harder for an attacker to perform a brute force attack using a large number of candidate passwords.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">No assumption is made regarding the given password; it is simply treated as a byte sequence.<\/p>\n<h2>CONFORMING TO <a name=\"CONFORMING TO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><small>RFC 2898<\/small><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><small>EVP_KDF_CTX<\/small> , <b>EVP_KDF_CTX_new_id<\/b>(3), <b>EVP_KDF_CTX_free<\/b>(3), <b>EVP_KDF_ctrl<\/b>(3), <b>EVP_KDF_derive<\/b>(3), &#8221; <small>CONTROLS&#8221;<\/small> in <b><small>EVP_KDF_CTX<\/small><\/b> (3)<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Licensed under the Apache License 2.0 (the &#8220;License&#8221;). You may not use this file except in compliance with the License. You can obtain a copy in the file <small>LICENSE<\/small> in the source distribution or at <https:\/\/www.openssl.org\/source\/license.html>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  EVP_KDF_PBKDF2 \u2212 The PBKDF2 EVP_KDF implementation <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[971],"tags":[973,1201,972],"class_list":["post-4122","post","type-post","status-publish","format-standard","hentry","category-7-miscelanea","tag-973","tag-evp_kdf_pbkdf2","tag-man7"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4122"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4122\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}