This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients christian.heimes, gregory.p.smith
Date 2022-03-23.19:30:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648063813.11.0.72255294176.issue47102@roundup.psfhosted.org>
In-reply-to
Content
Linux kernels provide a CryptoAPI. This is a common place for platform specific hardware accelerated hash algorithms to be exposed to the user (especially on SoCs which often have non-standard hardware).

https://www.kernel.org/doc/html/v4.10/crypto/userspace-if.html
https://www.kernel.org/doc/html/v5.17/crypto/userspace-if.html
https://www.chronox.de/libkcapi.html

hashlib currently uses OpenSSL when possible for performance.  We could also look at querying the kernel API.  How to decide between the two implementations when both are present is something TBD.

This would probably be best done via a configure time check for libkcapi?
History
Date User Action Args
2022-03-23 19:30:13gregory.p.smithsetrecipients: + gregory.p.smith, christian.heimes
2022-03-23 19:30:13gregory.p.smithsetmessageid: <1648063813.11.0.72255294176.issue47102@roundup.psfhosted.org>
2022-03-23 19:30:13gregory.p.smithlinkissue47102 messages
2022-03-23 19:30:12gregory.p.smithcreate