在 SecItemCopyMatching &keyRef returns nil
In SecItemCopyMatching the &keyRef returns nil
我一直在用
https://github.com/ideawu/Objective-C-RSA/blob/master/RSA.m
对于 RSA 加密,但在 iOS 9 中,kefRef 返回 nil,与 iOS 一起工作正常 8.What 应该进行更改吗?
SecKeyRef keyRef = nil;
status = SecItemCopyMatching((__bridge CFDictionaryRef)privateKey,(CFTypeRef *)&keyRef);
if(status != noErr){
return nil;
}
return keyRef;
问题出在使用的 public 键上。
我一直在用 https://github.com/ideawu/Objective-C-RSA/blob/master/RSA.m 对于 RSA 加密,但在 iOS 9 中,kefRef 返回 nil,与 iOS 一起工作正常 8.What 应该进行更改吗?
SecKeyRef keyRef = nil;
status = SecItemCopyMatching((__bridge CFDictionaryRef)privateKey,(CFTypeRef *)&keyRef);
if(status != noErr){
return nil;
}
return keyRef;
问题出在使用的 public 键上。