mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-24 22:47:06 +00:00
Restrict key types smart card will load
This commit is contained in:
parent
a0bd55d1bf
commit
6c012e9d24
@ -90,6 +90,8 @@ extension SmartCard.Store {
|
|||||||
guard let tokenID = tokenID else { return }
|
guard let tokenID = tokenID else { return }
|
||||||
let attributes = [
|
let attributes = [
|
||||||
kSecClass: kSecClassKey,
|
kSecClass: kSecClassKey,
|
||||||
|
kSecAttrKeyType: kSecAttrKeyTypeEC,
|
||||||
|
kSecAttrKeySizeInBits: 256,
|
||||||
kSecAttrTokenID: tokenID,
|
kSecAttrTokenID: tokenID,
|
||||||
kSecReturnRef: true,
|
kSecReturnRef: true,
|
||||||
kSecMatchLimit: kSecMatchLimitAll,
|
kSecMatchLimit: kSecMatchLimitAll,
|
||||||
|
Loading…
Reference in New Issue
Block a user