I'm using the PCLCrypto library to crypt some data in my application (iOS). All the processes goes well but when I lock the screen a receive the following exception:
System.InvalidOperationException: SecItemAdd return -25308 at PCLCrypto.RsaAsymmetricKeyAlgorithmProvider.ImportPublicKey (System.Byte keyBlob, PCLCrypto.CryptographicPublicKeyBlobType blobType) [0x000b4] in <0d3c0b2586f645d4a87ef50f78aa84f8>:0
This only happens when the screen is locked, if I unlock the data are crypted normaly.
I'm testing on iPhone 5C with iOS 10.3.2. The Entitlements.plist is already added.