| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@tniessen build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/113/pipeline |
Sorry, something went wrong.
|
CC @nodejs/crypto. Not sure who to ping for the legal stuff. |
Sorry, something went wrong.
We should marked this blocked until we can get a legal review. @MylesBorins ... this may be one to bring up to the legal committee. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM modulo comment.
Apropos the legal ramifications, note that we're already shipping OCB:
$ node
> var c = crypto.createCipheriv('aes-128-ocb', 'x'.repeat(16), 'x'.repeat(12)); c.update('boom'); c.final()
<Buffer 4e 83 df 21>
Sorry, something went wrong.
There was a problem hiding this comment.
Why not make this a function?
Sorry, something went wrong.
There was a problem hiding this comment.
Mhhh I think in my head it still looks like "less overhead". Would you like me to change it?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, please.
Sorry, something went wrong.
There was a problem hiding this comment.
This will conflict with #21462 when it lands (but no doubt you knew that since you reviewed it. :-))
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, but thanks for pointing it out 😃
Sorry, something went wrong.
|
Thanks for reviewing, @bnoordhuis!
And we are already shipping OpenSSL which supports OCB, that's why I assume hope there won't be any problems. |
Sorry, something went wrong.
|
Comment addressed and rebased (old HEAD was 46178187be645f7451279382467c6799b0e3b8cc). |
Sorry, something went wrong.
|
I doubt there will be any issues here and it's likely safe to proceed, but it would still be good to get a legal committee review (assuming that doesn't take forever lol). Let's not block on it tho |
Sorry, something went wrong.
|
Thanks @jasnell. Sadly, I literally know nothing about our legal committee, I can't even find a list of members or documented processes involving them. Full CI: https://ci.nodejs.org/job/node-test-pull-request/15662/ |
Sorry, something went wrong.
|
That's something @MylesBorins needs to do |
Sorry, something went wrong.
|
Rebased, old HEAD was 64efc012ccb9fcdf2f619f1f9cbcf0691fae5009. I am pinging @nodejs/tsc to make sure that they know of this change, I would like to land it next week. |
Sorry, something went wrong.
|
Since adding stuff to crypto has been A Thing lately, I'm going to cc @nodejs/security-wg... |
Sorry, something went wrong.
|
This needs a rebase. |
Sorry, something went wrong.
|
Thank you, @BridgeAR! Rebased, old HEAD was dce91f94f146bbf73b8a059ba30be4f9defa84bc. I will land this tomorrow unless someone objects. |
Sorry, something went wrong.
PR-URL: nodejs#21447 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Depends on #21782 to land on v10.x-staging |
Sorry, something went wrong.
|
Yes, it should be backported to v10.x-staging. I started working on it but decided to cut my losses. @tniessen the conflicts are around semver-major changes you've introduced in master so you'll probably have a much easier time putting a PR against v10.x-staging to backport this. |
Sorry, something went wrong.
|
I'll be home in a couple of days and will give it a try. |
Sorry, something went wrong.
|
@tniessen I see that you pushed a backport branch to your fork. Is it ready for a PR? |
Sorry, something went wrong.
|
@targos The code itself should work, but I am afraid that it might have unintended side effects for CCM. I'll try to verify that within the next few days. |
Sorry, something went wrong.
PR-URL: nodejs#21447 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
This change adds support for OCB, the newest and fastest AEAD mode offered by OpenSSL. There are relatively few changes required within the native code, the OCB implementation behaves somewhat like CCM, except that some limitations of CCM don't apply.
As OCB is patented, we will need to check whether this change has any legal implications. The holder of the patents, Phillip Rogaway, has summarized the situation here and I am pretty sure there won't be any problems, but I wouldn't want to be the one to make the decision.
Checklist