[issue47102] explore hashlib use of the Linux Kernel CryptoAPI
Gregory P. Smith
report at bugs.python.org
Wed Mar 23 15:30:13 EDT 2022
New submission from Gregory P. Smith <greg at krypto.org>:
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?
----------
messages: 415896
nosy: christian.heimes, gregory.p.smith
priority: normal
severity: normal
status: open
title: explore hashlib use of the Linux Kernel CryptoAPI
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47102>
_______________________________________
More information about the Python-bugs-list
mailing list