-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support setting more PKCS12 serialization encryption options #7560
Conversation
d377d46
to
00921fa
Compare
575df0b
to
342534a
Compare
This is limited support, but makes it possible to set two different PBES choices as well as set KDF rounds and MAC algorithm
342534a
to
9d2567b
Compare
Co-authored-by: Alex Gaynor <[email protected]>
Co-authored-by: Alex Gaynor <[email protected]>
... kdf_rounds(50000). | ||
... key_cert_algorithm(pkcs12.PBES.PBESv1SHA1And3KeyTripleDESCBC). | ||
... hmac_hash(hashes.SHA1()).build(b"my password") | ||
... ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if the parenthesis here serve any purpose. I think Python just ignores them but some might confuse them to put the encryption into a tuple. But then again if you confuse that, you probably should not be playing with these things ...
Edit, nevermind. It allows you to skip all the \.
This is limited support, but makes it possible to set different PBES choices as well as set KDF rounds and MAC algorithm.