From 1390768f53103fa8be43501818b5356b8a799b41 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Mon, 14 Jun 2021 19:07:03 +0200 Subject: [PATCH] Create VFS key in keychain with device locked accessibility --- Classes/VFSUtil.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/VFSUtil.swift b/Classes/VFSUtil.swift index 4e98aa803..787ca5c7b 100644 --- a/Classes/VFSUtil.swift +++ b/Classes/VFSUtil.swift @@ -45,7 +45,7 @@ import os [.privateKeyUsage, .touchIDCurrentSet] : .privateKeyUsage } let access = - SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleWhenUnlockedThisDeviceOnly,flags,nil)! + SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleAlwaysThisDeviceOnly,flags,nil)! let tag = keyName.data(using: .utf8)! let attributes: [String: Any] = [ kSecAttrKeyType as String : kSecAttrKeyTypeECSECPrimeRandom,