Restrict key types smart card will load

This commit is contained in:
Max Goedjen 2020-03-08 21:16:43 -07:00
parent a0bd55d1bf
commit 6c012e9d24
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ extension SmartCard.Store {
guard let tokenID = tokenID else { return }
let attributes = [
kSecClass: kSecClassKey,
kSecAttrKeyType: kSecAttrKeyTypeEC,
kSecAttrKeySizeInBits: 256,
kSecAttrTokenID: tokenID,
kSecReturnRef: true,
kSecMatchLimit: kSecMatchLimitAll,