Specify private key usage explicitly (#652)

This commit is contained in:
Max Goedjen 2025-08-31 19:41:47 -07:00 committed by GitHub
parent 935ac32ea2
commit 99a6d48e53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,7 @@ extension SecureEnclave {
var accessError: SecurityError?
let flags: SecAccessControlCreateFlags = switch attributes.authentication {
case .notRequired:
[]
[.privateKeyUsage]
case .presenceRequired:
[.userPresence, .privateKeyUsage]
case .biometryCurrent: