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
Move cipher ctx 'original iv' parameter into the provider #10026
Conversation
|
Naming wise, I wonder if the parameter isn't a bit misnamed. What does "original" mean? What origin does it refer to? So I wonder if it wouldn't be better to call it "initial IV", to express that it's the IV that was specified when initializing the cipher, i.e. when calling (remember that |
|
Speaking of IV, I'm starting to wonder why we even share the running IV (which, strictly speaking, isn't an IV any more) from providers. With legacy code, I fully understand, because all back-ends needed to access the IV that was centrally stored in the In other words, there should really just be a Perhaps this is a matter for another PR. I'll be happy to oblige. |
|
I need to look at it more thoroughly. GOST TLS requires an original IV as a source to derive the per-packet IV. See https://tools.ietf.org/html/draft-smyshlyaev-tls12-gost-suites-05#section-4.1.1 for details. |
bf37b2a
to
ccc25e2
Compare
Good point - If there is a need for the running IV (which I dont think there is now) we would add it later. |
TLS related ciphers normally use a seperate mechanism via some ctrls to set the fixed_iv and aad so this should not be an issue. |
|
Updated |
d93cb91
to
cf2808c
Compare
|
rebased due to simple merge conflict in header ciphercommon.h. Approval should still apply. |
Not formally. A re-review will confirm that you didn't goof up the merge fixups |
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from #10026)
|
Thanks.. Merged to master. |
Checklist