Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added documentation describing the dklen is expected in bytes for the…#106624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
serhiy-storchaka merged 4 commits intopython:mainfromthiezn:main
May 22, 2024

Conversation

thiezn
Copy link
Contributor

@thieznthiezn commentedJul 11, 2023
edited by github-actionsbot
Loading

Update hashlib.pbkdf2_hmac docs that dklen is in bytes

Thehashlib.pbkfdf2_hmac documentation states that you can pass on the length of the derived key. It is however ambiguous if it's meant to be passed on as bytes or bits.

The CPython implementation relies on the OpenSSL C library. Looking at the OpenSSL source code, the function is expected to be in bytes.

Although this might be obvious to most people, some otherlanguage libraries handle this in bits.

Ps. This is my first pull request to cPython. I hope I'm not missing anything?


📚 Documentation preview 📚:https://cpython-previews--106624.org.readthedocs.build/

@thieznthiezn requested a review fromtiran as acode ownerJuly 11, 2023 13:08
@bedevere-botbedevere-bot added awaiting review docsDocumentation in the Doc dir skip news labelsJul 11, 2023
@ghost
Copy link

ghost commentedJul 11, 2023
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There is a similar case in the documentation forscrypt() few lines below. Please add "in bytes" there too.

@thieznthiezn requested a review fromgpshead as acode ownerMay 22, 2024 07:12
@thiezn
Copy link
ContributorAuthor

Updated dklen documentation for scrypt() to include 'in bytes'

Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM.

thiezn reacted with hooray emoji
@miss-islington-app
Copy link

Thanks@thiezn for the PR, and@serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 22, 2024
…thonGH-106624)(cherry picked from commit5adf78f)Co-authored-by: Mathijs Mortimer <thiezn@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 22, 2024
…thonGH-106624)(cherry picked from commit5adf78f)Co-authored-by: Mathijs Mortimer <thiezn@users.noreply.github.com>
@bedevere-app
Copy link

GH-119383 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMay 22, 2024
@bedevere-app
Copy link

GH-119384 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelMay 22, 2024
serhiy-storchaka pushed a commit that referenced this pull requestMay 22, 2024
…ons (GH-106624) (GH-119384)(cherry picked from commit5adf78f)Co-authored-by: Mathijs Mortimer <thiezn@users.noreply.github.com>
serhiy-storchaka pushed a commit that referenced this pull requestMay 22, 2024
…ons (GH-106624) (GH-119383)(cherry picked from commit5adf78f)Co-authored-by: Mathijs Mortimer <thiezn@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

@tirantiranAwaiting requested review from tirantiran is a code owner

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip issueskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@thiezn@serhiy-storchaka@bedevere-bot@m-mortimer

[8]ページ先頭

©2009-2025 Movatter.jp