Repository navigation
Add vpaes_ctr32_encrypt_blocks for x86_64 - #11666
bernd-edlinger wants to merge 2 commits into
Conversation
035d462 to
3872a0f
Compare
davidben
left a comment
There was a problem hiding this comment.
The integration seems reasonable, though I'm not up-to-date with how landing on master vs. 1.1.1 works. One comment, however: this PR is currently a no-op. BSAES_CAPABLE and VPAES_CAPABLE are identical on x86_64, so everything that would have used vpaes_ctr32_encrypt_blocks would just use bsaes_ctr32_encrypt_blocks instead.
There was a problem hiding this comment.
Not for this PR, but grepping for __x86_64 in the source tree, I see a lot of variations of this ifdef. Perhaps there's something to be said for having some common architecture ifdefs in some common file?
There was a problem hiding this comment.
I don't even know which compiler made this mess necessary.
I could find out for GCC, but there are lots of other compilers
where I cannot look at the source code. I do not understand
if that was just s stupid idea from the beginning. or was there
a reason for this multiple defines? There is no comment
anywhere, giving the rationale, therefore I personally think
that was driven by irrational fear about possible bugs in
unknown / ancient no longer supported compiler versions.
|
@davidben FYI: This is a back-port of your contribution to #9677 So there is no BSAES any more for X86_64, therefore this PR should make I do not understand why that was approved for 1.1.1 but the same PR for Frankly in the moment I feel like creating my own personal totallyBoringSSL branch. |
|
I just confirmed, OPENSSL_ia32cap=2199023255552 make test |
Ah, sorry, I'd missed that! Ignore what I said about this being a no-op then. Is the x86 (Regarding BoringSSL, I didn't start the project, but the README has some comment about how it came about. I got involved because I work on Chrome and was distractable. :-) ) |
|
No reason to feel sorry about that. I am happy you looked at this PR. |
good point I will check that. |
isn't that a toxic element? |
This adds an analog to the (currently unused) "2x" optimization from vpaes-armv8.pl and a ctr128_f implementation.
[extended tests]
8984dda to
5a5086d
Compare
This adds an analog to the (currently unused) "2x" optimization from
vpaes-armv8.pl and a ctr128_f implementation.
Checklist