简体   繁体   English

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

[英]How many keys can be stored in the iOS Secure Enclave?

Is there a limit to the number of keys I can store in the iOS Secure Enclave?我可以在 iOS Secure Enclave 中存储的密钥数量是否有限制?

I have read Apple's documentation about the Secure Enclave (with a lot of associated pages) and also Apple'sdocument about security , but I haven't found anything about the Secure Enclave's capacity.我已经阅读了 Apple 关于 Secure Enclave文档(有很多相关页面)以及 Apple关于 security文档,但是我没有找到关于 Secure Enclave 容量的任何信息。

I have tried to generate 1025 key pairs to try the Secure Enclave's capacity.我尝试生成 1025 个密钥对来尝试 Secure Enclave 的容量。 Around number 400 I started to receive an error.大约在 400 号左右,我开始收到错误消息。

So I think, there sa limit.所以我认为,有一个限制。 But right now I can not say if it is a size limit or quantity limit.但现在我不能说这是尺寸限制还是数量限制。

According UserDefaults and other *.plist.根据 UserDefaults 和其他 *.plist。

From iOS SDK codes, and related Apple official document..来自iOS SDK代码,以及相关的苹果官方文档..

 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


// ....
}   

Summary概括

  • Currently there is no limit for local user defaults目前本地用户默认没有限制
  • On tvOS, where a warning notification will be posted at 512kB, and the process terminated at 1MB.在 tvOS 上,警告通知将在 512kB 处发布,进程在 1MB 处终止。
  • For ubiquitous defaults, the limit depends on the logged in iCloud user.对于无处不在的默认设置,限制取决于登录的 iCloud 用户。

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

相关问题 iOS:存储在安全飞地中的密钥不支持解密 - iOS: Decryption not supported on key stored in secure enclave iOS:应用扩展之间是否共享安全飞地? - iOS: Is secure enclave shared between app extensions? Safari 浏览器的 IOS 安全飞地密钥存储 - IOS secure enclave key storage for Safari Browser 如何在没有 TouchID 和密码的情况下使用 Secure Enclave? - How to use Secure Enclave without TouchID and Passcode? 如何检查安全飞地是否在设备中可用 - How to check either secure enclave is available in device or not 即使卸载应用程序后,安全的Enclave密钥仍然存在 - Secure Enclave keys exists even after app uninstallation Openssl 验证失败,iOS Secure Enclave 创建签名 - Openssl verify fails with iOS Secure Enclave created signature 在IOS设备中,一次可以存储多少个指纹? - How many finger prints can be stored at a time in an IOS device? Apple,iOS 13,CryptoKit,Secure Enclave - 在使用私钥之前实施生物特征认证 - Apple, iOS 13, CryptoKit, Secure Enclave - Enforce biometric authentication ahead of private key usage iOS Swift Diffie-Hellman 密钥交换加密和解密消息? 使用安全飞地 - iOS Swift Diffie-Hellman key exchange to encrypt and decrypt messages? using Secure Enclave
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM