简体   繁体   English

iOS:应用扩展之间是否共享安全飞地?

[英]iOS: Is secure enclave shared between app extensions?

I am working on a app where a encryption key is saved into the secure enclave.我正在开发一个应用程序,其中加密密钥保存在安全飞地中。 So my question is if this data is also shared with the app extensions, ie Siri / Notification Center widget / Watch App?所以我的问题是这些数据是否也与应用程序扩展共享,即 Siri/通知中心小部件/手表应用程序?

I tested this using an App Group shared between the app and the app extension.我使用App Group程序和应用程序扩展之间共享的应用App Group对此进行了测试。 Following the instructions in Sharing Access to Keychain Items Among a Collection of Apps按照在应用程序集合共享对钥匙串项目的访问中的说明进行操作

SecItemCopyMatching will return an item saved by the app (with kSecAccessControlBiometryCurrentSet set) and queried for within the extension. SecItemCopyMatching将返回应用程序保存的项目(设置了kSecAccessControlBiometryCurrentSet )并在扩展中查询。 So it appears the answer is yes.所以看起来答案是肯定的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM