Search code examples
iosthread-safetykeychainkeychainitemwrapper

is keychain in ios threadsafe?


I would like to add some items to the keychain using "secitemadd", but I need to know first, if this is thread safe.

I have read the documentation from apple, but I am unable to find anywhere stating if its thread-safe.


Solution

  • In another document, Apple says it is thread safe.

    Concurrency Considerations
    On iOS, all the functions in this API are thread-safe and reentrant.

    see Certificate, Key, and Trust Services Reference