-
Notifications
You must be signed in to change notification settings - Fork 236
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
add wrappers to enable/disable Padding for encryption contexts #99
Conversation
I need this as well. We need to turn off the default padding and do it our way because we need to comply with our clients. |
Thanks for this contribution. I have some changes I'd like to request in order to get it merged:
Let me know if you're willing to make these changes. Be sure to add yourself to the AUTHORS file as well. Thanks! |
@zeebo , thanks ! I will do the changes as you suggested and update the PR. |
@zeebo, can you please expand on what you meant here?
|
A package depending on this package may have a local implementation of the interface on some type and adding methods to it would cause that package to no longer compile because the local implementation would not have that method. I try to be really careful about back compat. That's why https://godoc.org/github.com/spacemonkeygo/openssl#LoadPrivateKeyFromPEMWidthPassword still exists. :) |
@zeebo just pushed the changes. However, I am still unclear of this: |
Here's what I mean: https://play.golang.org/p/bqyEPtjsWB3 |
@zeebo , thank you for the reference ! It works like a charm..I have never used an exported method in that way ! I have now changed the AUTHORS file, as well as squashed my previous commits into one single commit. Do you think the current changes are good enough to merge into the main line ? |
Perfect! Thanks for the work. |
We needed to disable and use customized padding in our product. This code change enables us (and others who need it) to have custom padding.