Commit 1390768f authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Create VFS key in keychain with device locked accessibility

parent c0292d91
...@@ -45,7 +45,7 @@ import os ...@@ -45,7 +45,7 @@ import os
[.privateKeyUsage, .touchIDCurrentSet] : .privateKeyUsage [.privateKeyUsage, .touchIDCurrentSet] : .privateKeyUsage
} }
let access = let access =
SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleWhenUnlockedThisDeviceOnly,flags,nil)! SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleAlwaysThisDeviceOnly,flags,nil)!
let tag = keyName.data(using: .utf8)! let tag = keyName.data(using: .utf8)!
let attributes: [String: Any] = [ let attributes: [String: Any] = [
kSecAttrKeyType as String : kSecAttrKeyTypeECSECPrimeRandom, kSecAttrKeyType as String : kSecAttrKeyTypeECSECPrimeRandom,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment