0
我一直在使用 https://github.com/ideawu/Objective-C-RSA/blob/master/RSA.m 爲RSA加密,但在iOS 9中kefRef返回零,在iOS 8下正常工作。應該做什麼改變?在SecItemCopyMatching中&keyRef返回零
SecKeyRef keyRef = nil;
status = SecItemCopyMatching((__bridge CFDictionaryRef)privateKey,(CFTypeRef *)&keyRef);
if(status != noErr){
return nil;
}
return keyRef;