New submission from Gregory P. Smith <g...@krypto.org>:

https://developer.apple.com/documentation/cryptokit/ in macOS 10.15+

This is a common place for platform specific hardware acceleration to be 
exposed to the user (especially on SoCs which often have non-standard hardware 
- Like Apples... which is presumably why they create this).

What they offer is limited, but when present and running on a recent enough 
macOS, using their and SHA2 and HMAC(SHA2) implementations as well as 
Insecure.SHA1 is probably better than OpenSSL's.  **Verify this.** It'd also 
allow those to be fast in a non-openssl build (as if anyone does those).

I know little about mac building and packaging and how to have something target 
an older OS and use a 10.15+ API. So if this winds up only being used from 
aarch64 macOS builds (10.15+ by definition IIRC?) that could also work.

I leave this issue for a macOS Apple API friendly person to take on.

This issue is cousin to the Linux one: https://bugs.python.org/issue47102

----------
components: Extension Modules, macOS
messages: 416032
nosy: gregory.p.smith, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: explore hashlib use of the Apple CryptoKit macOS
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue47124>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to