iOS Secure Enclave 中可以存储多少个密钥?

Mar*_*Žid 5 security ios swift enclave

我可以在 iOS Secure Enclave 中存储的密钥数量是否有限制?

我已经阅读了 Apple关于 Secure Enclave文档(有很多相关页面)以及 Apple关于 security文档,但是我没有找到关于 Secure Enclave 容量的任何信息。

Mar*_*Žid 5

我尝试生成 1025 个密钥对来尝试 Secure Enclave 的容量。大约在 400 号左右,我开始收到错误消息。

所以我认为,有一个限制。但现在我不能说这是尺寸限制还是数量限制。


mas*_*vsa -5

根据 UserDefaults 和其他 *.plist。

来自iOS SDK代码,以及相关的Apple官方文档..

 extension UserDefaults {


  /*!
   NSUserDefaultsSizeLimitExceededNotification is posted on the main queue when 
more data is stored in user defaults than is allowed. Currently there is no 
limit for local user defaults except on tvOS, where a warning notification will 
be posted at 512kB, and the process terminated at 1MB. For ubiquitous defaults, 
the limit depends on the logged in iCloud user.
 */
@available(iOS 9.3, *)
public class let sizeLimitExceededNotification: NSNotification.Name


// ....
}   
Run Code Online (Sandbox Code Playgroud)

概括

  • 目前本地用户默认没有限制
  • 在 tvOS 上,警告通知将在 512kB 处发布,进程在 1MB 处终止。
  • 对于普遍存在的默认设置,限制取决于登录的 iCloud 用户。