Closed Ivanjustme closed 6 years ago
SecKeyRef keyRef = [self addPrivateKey:privKey];
锁屏的时候这行代码不执行,解密就返回nil
OSStatus status = -25308
解决方案,就是在获取status状态前加上 [privateKey setObject:(bridge id)kSecAttrAccessibleAfterFirstUnlock forKey:(bridge id)kSecAttrAccessible];
锁屏的时候这行代码不执行,解密就返回nil