Lines Matching refs:dklen
638 long iterations, dklen; in pbkdf2_hmac() local
678 dklen = EVP_MD_size(digest); in pbkdf2_hmac()
680 dklen = PyLong_AsLong(dklen_obj); in pbkdf2_hmac()
681 if ((dklen == -1) && PyErr_Occurred()) { in pbkdf2_hmac()
685 if (dklen < 1) { in pbkdf2_hmac()
690 if (dklen > INT_MAX) { in pbkdf2_hmac()
697 key_obj = PyBytes_FromStringAndSize(NULL, dklen); in pbkdf2_hmac()
707 iterations, digest, dklen, in pbkdf2_hmac()
712 iterations, digest, dklen, in pbkdf2_hmac()
757 long maxmem, long dklen) in _hashlib_scrypt_impl() argument
817 if (dklen < 1 || dklen > INT_MAX) { in _hashlib_scrypt_impl()
833 key_obj = PyBytes_FromStringAndSize(NULL, dklen); in _hashlib_scrypt_impl()
844 (unsigned char *)key, (size_t)dklen in _hashlib_scrypt_impl()