Commit c6564b94 authored by Christian Heimes's avatar Christian Heimes

Make PKCS5_PBKDF2_HMAC_fast() a static function

parent 36af10c1
...@@ -513,10 +513,11 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict) ...@@ -513,10 +513,11 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict)
* Also OpenSSL < 1.0 don't provide PKCS5_PBKDF2_HMAC(), only * Also OpenSSL < 1.0 don't provide PKCS5_PBKDF2_HMAC(), only
* PKCS5_PBKDF2_SHA1. * PKCS5_PBKDF2_SHA1.
*/ */
int PKCS5_PBKDF2_HMAC_fast(const char *pass, int passlen, static int
const unsigned char *salt, int saltlen, PKCS5_PBKDF2_HMAC_fast(const char *pass, int passlen,
int iter, const EVP_MD *digest, const unsigned char *salt, int saltlen,
int keylen, unsigned char *out) int iter, const EVP_MD *digest,
int keylen, unsigned char *out)
{ {
unsigned char digtmp[EVP_MAX_MD_SIZE], *p, itmp[4]; unsigned char digtmp[EVP_MAX_MD_SIZE], *p, itmp[4];
int cplen, j, k, tkeylen, mdlen; int cplen, j, k, tkeylen, mdlen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment