GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — gh-99108: Implement HACL* HMAC by picnixz · Pull Request #130157 · python/cpython Conversation
|
|
@msprotz I'm not sure if it's an HACL issue or not, but |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You are correct -- there is one additional step to do to handle this case. Note that HMAC is the first time we have a file that contains references to vec128/vec256 yet may be compiled on a system that has no such types. (Previously, Blake2b_256 was only ever built if vec256 was known at build-time to exist, and likewise with Blake2s_128.) One option is to conditional includes, but that leads to other difficulties, such as having to hide cases of the agile hmac state union behind #ifdef, and then propagating #ifdefs everywhere in this file. This is error-prone and a lot of maintenance. The other option we've done is simply to What I don't understand / remember, though, is why this isn't done directly inside libintvector.h. (We currently do it in our mini-configure for CI purposes and emit those #ifdefs in config.h.) I'd be curious to see if you could manually patch libintvector.h to define those types to void* (in the #else case of #ifdef HACL_CAN_COMPILE_VEC256, and likewise for VEC128) and then see if we get a good build? I would then be happy to upstream this fix. Thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
a993e69 to
8ce1524
Compare
8ce1524 to
dcb89f5
Compare
There was an error while loading. Please reload this page.
|
I'll wait for #130960 to be merged so that I don't need to re-update the SBOMs etc. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
22e3003 to
56b3c8f
Compare
|
I'd (1) leave the SIMD detection for a followup PR and (2) keep the pedantic checks for the return code. similarly, documentation updates we're not clear on the need for can be considered separately. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Agreed that SIMD can be left for later -- this should be transparent from the point of view of the clients. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you @picnixz!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- add two blank lines for separating functions - use consistent truthy checks
|
🤖 New build scheduled with the buildbot fleet by @picnixz for commit 258aa20 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130157%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @picnixz for commit 258aa20 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130157%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I expect failures on some FIPS-only build bots but that's fine because the test suite is already failing on them. And some failures on other build bots as well (like aarch64 which is known to be flaky these past days). Once all build bots are fine, I'll merge it (but only on Friday, as I'm leaving in a few hours) [so please don't merge it since I want to write the commit message, TiA] |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you all for the feedback, especially @msprotz for the upstream work! The next step is to enable the SIMD support. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A new extension module, `_hmac`, now exposes the HACL* HMAC (formally verified) implementation. The HACL* implementation is used as a fallback implementation when the OpenSSL implementation of HMAC is not available or disabled. For now, only named hash algorithms are recognized and SIMD support provided by HACL* for the BLAKE2 hash functions is not yet used.
The big changes here are: - Switching to zlib-ng on Windows (python/cpython#131438) - Using hmac for hashing functions (python/cpython#130157) --------- Co-authored-by: Geoffrey Thomas <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.