-
Notifications
You must be signed in to change notification settings - Fork 674
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
boot: Rename boot_enc_decrypt to boot_decrypt_key #2003
Conversation
All of boot_enc_ function follow the same pattern where they take encryption context as the first parameter, and the boot_enc_decrypt stands out here as it does not work around the encryption context, but is rather single-part decryption function only used for decrypting of the image encryption key. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
I think this is arguably worse; as part of the encrypted images "api" all functions have names that start with |
Putting api and standard in quotes seems to mock them rather then making them an argument in discussion. Worse? Nah. All except this one function take And the standard somehow names the encryption function For me pattern was clear: everything I do not want to make everything in one PR and I am not going to reuse |
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'm fine with the change which makes the function name descriptive.
I do not want to make everything in one PR and I am not going to reuse boot_decrypt, actually I have to implement boot_enc_decrypt and boot_enc_encrypt...
Yes - this will fit to the pattern.
I have marked it as DNM, because while reworking |
Nope, not the good idea. But the boot_enc_load is gone. |
If it's an API to you, then it's an API. I wrote it so there would be no point in mocking! You need to write "
YOU THE CAPTAIN NOW! |
All of boot_enc_ function follow the same pattern where they take encryption context as the first parameter, and the boot_enc_decrypt stands out here as it does not work around the encryption context, but is rather single-part decryption function only used for decrypting of the image encryption key.